Commit 371a084c by 王悦

fix com//

parent 348b976c
......@@ -15,14 +15,14 @@ class NotarizationflowService extends ServiceBase {
sellerData: {},
transferData: {}
}
console.log(obj.sellerFrontOfIdCard.split("com//")[1]);
obj.sellerFrontOfIdCard = obj.sellerFrontOfIdCard == null ? null : obj.sellerFrontOfIdCard.split("com//")[1];
obj.sellerBackOfIdCard = obj.sellerBackOfIdCard == null ? null : obj.sellerBackOfIdCard.split("com//")[1];
obj.tmRegisterCertificate = obj.tmRegisterCertificate == null ? null : obj.tmRegisterCertificate.split("com//")[1];
obj.businessLicense = obj.businessLicense == null ? null : obj.businessLicense.split("com//")[1];
obj.tmAcceptCertificate = obj.tmAcceptCertificate == null ? null : obj.tmAcceptCertificate.split("com//")[1];
obj.buyerIdentification = obj.buyerIdentification == null ? null : obj.buyerIdentification.split("com//")[1];
obj.tmRegisterChangeCertificate = obj.tmRegisterChangeCertificate == null ? null : obj.tmRegisterChangeCertificate.split("com//")[1];
//console.log(obj.sellerFrontOfIdCard.split("com//")[1]);
obj.sellerFrontOfIdCard = buildurl(obj.sellerFrontOfIdCard)
obj.sellerBackOfIdCard = buildurl(obj.sellerBackOfIdCard)
obj.tmRegisterCertificate = buildurl(obj.tmRegisterCertificate)
obj.businessLicense = buildurl(obj.businessLicense)
obj.tmAcceptCertificate = buildurl(obj.tmAcceptCertificate)
obj.buyerIdentification = buildurl(obj.buyerIdentification)
obj.tmRegisterChangeCertificate = buildurl(obj.tmRegisterChangeCertificate)
//买家信息 个人
if (obj.buyerType == "person") {
if (this.isStrEmpty(obj.buyerName) && this.isStrEmpty(obj.certificateNo) && this.isStrEmpty(obj.certificateType)) {
......@@ -195,4 +195,10 @@ class NotarizationflowService extends ServiceBase {
}
}
}
function buildurl(url){
if (url && url.indexOf("com//") > -1){
return url.split("com//")[1]
}
return url
}
module.exports = NotarizationflowService;
......@@ -268,15 +268,15 @@ class TradetransferService extends ServiceBase {
//补充材料
async supplymaterail(obj) {
//obj.buyer_businesslicense = obj.buyer_businesslicense == null ? null : obj.buyer_businesslicense.split("com//")[1];
//obj.buyer_idcard = obj.buyer_idcard == null ? null : obj.buyer_idcard.split("com//")[1];
//obj.seller_businesslicense = obj.seller_businesslicense == null ? null : obj.seller_businesslicense.split("com//")[1];
//obj.seller_idcard = obj.seller_idcard == null ? null : obj.seller_idcard.split("com//")[1];
//obj.seller_proxy = obj.seller_proxy == null ? null : obj.seller_proxy.split("com//")[1];
//obj.tm_cert_url = obj.tm_cert_url == null ? null : obj.tm_cert_url.split("com//")[1];
//obj.seller_apply = obj.seller_apply == null ? null : obj.seller_apply.split("com//")[1];
//obj.transfer_cert_url = obj.transfer_cert_url == null ? null : obj.transfer_cert_url.split("com//")[1];
//obj.notarization_url = obj.notarization_url == null ? null : obj.notarization_url.split("com//")[1];
obj.buyer_businesslicense =buildurl(obj.buyer_businesslicense)
obj.buyer_idcard =buildurl(obj.buyer_idcard)
obj.seller_businesslicense =buildurl(obj.seller_businesslicense)
obj.seller_idcard =buildurl(obj.seller_idcard)
obj.seller_proxy =buildurl(obj.seller_proxy)
obj.tm_cert_url =buildurl(obj.tm_cert_url)
obj.seller_apply =buildurl(obj.seller_apply)
obj.transfer_cert_url =buildurl(obj.transfer_cert_url)
obj.notarization_url =buildurl(obj.notarization_url)
obj.user_type = obj.user_type == "person" ? 2 : 1;
var sobj = {
action: "SupplyMaterail",
......@@ -552,4 +552,10 @@ class TradetransferService extends ServiceBase {
}
}
function buildurl(url){
if (url && url.indexOf("com//") > -1){
return url.split("com//")[1]
}
return url
}
module.exports = TradetransferService;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment