Commit bcf9643a by 孙亚楠

dd

parent f6ac04a1
......@@ -197,13 +197,13 @@ class System {
order: local + ":3103" + path,
// 发票服务
invoice: dev + ":3105" + path,
invoice: local + ":3105" + path,
// 用户服务
uc: dev + ":3106" + path,
// 交易
trade: dev + ":3107" + path,
trade: local + ":3107" + path,
}
} else {
return {
......
......@@ -228,19 +228,6 @@ class MerchantApplet extends AppletBase {
}
}
//
// async commonInfo(gobj, pobj, req, loginUser) {
// var user = await this.bmuserSve.findById(loginUser.id);
// return {
// code : 1,
// data: {
// telphone: "15235755003",
// telphones: ["15235755003","15210210265"],
// }
// };
// }
//
//
async idNoValid(gobj, pobj, req, loginUser){
try {
......@@ -296,25 +283,25 @@ class MerchantApplet extends AppletBase {
try{
let creditCodeArray =await this.businessmenSve.assorderBusinessmenInfo(pobj2);
if(creditCodeArray.status != 0){
return creditCodeArray;
return this.returnSuccess({count:0,rows:[]});
}
let creditCodes = [];
for (let val of creditCodeArray.data) {
creditCodes.push(val.credit_code);
}
if(!creditCodes || creditCodes.length ==0){
return sys.getResult([]);
return this.returnSuccess({count:0,rows:[]});
}
pobj2.credit_code_array = creditCodes;
let res = await this.tradeSve.tradeItemBycreditCode(pobj2);
if(res.status==0){
return this.returnSuccess(res.data);
}else{
this.returnFail("请求超时 请稍后在试");
return this.returnFail("请求超时 请稍后在试");
}
}catch (e) {
console.log(e);
this.returnFail("请求超时 请稍后在试");
return this.returnFail("请求超时 请稍后在试");
}
}
......@@ -335,14 +322,15 @@ class MerchantApplet extends AppletBase {
try{
let creditCodeArray =await this.businessmenSve.assorderBusinessmenInfo(pobj2);
if(creditCodeArray.status != 0){
return creditCodeArray;
return this.returnSuccess({count:0,rows:[]});
}
let creditCodes = [];
for (let val of creditCodeArray.data) {
creditCodes.push(val.credit_code);
}
if(!creditCodes || creditCodes.length ==0){
return sys.getResult([]);
return this.returnSuccess({count:0,rows:[]});
}
pobj2.credit_code_array = creditCodes;
......@@ -350,7 +338,7 @@ class MerchantApplet extends AppletBase {
if(res.status==0){
return this.returnSuccess(res.data);
}else{
this.returnFail("请求超时 请稍后在试");
return this.returnFail("请求超时 请稍后在试");
}
}catch (e) {
console.log(e);
......
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