Commit 4affafe2 by zhaoxiqing

gsi

parent 296fecf1
...@@ -521,24 +521,24 @@ class EntcontractService extends ServiceBase { ...@@ -521,24 +521,24 @@ class EntcontractService extends ServiceBase {
]; ];
try { try {
var erchants = await this.yzmerchantsignedDao.findOne({ // var erchants = await this.yzmerchantsignedDao.findOne({
companyName: params.merchantName, // companyName: params.merchantName,
}); // });
//
if (erchants) { // if (erchants) {
return { // return {
code: 0, // code: 0,
msg: "执行成功", // msg: "执行成功",
data: { // data: {
ecid: erchants.ecid, // ecid: erchants.ecid,
appId: erchants.appId, // appId: erchants.appId,
mchtId: erchants.mchtId, // mchtId: erchants.mchtId,
mainId: erchants.mainId, // mainId: erchants.mainId,
secret: erchants.secret, // secret: erchants.secret,
}, // },
erchants: erchants // erchants: erchants
} // }
} // }
let url =enttemplate.merchantApi; let url =enttemplate.merchantApi;
console.log("有赞商户创建url:", url); console.log("有赞商户创建url:", url);
let rs = await axios({ let rs = await axios({
...@@ -552,7 +552,7 @@ class EntcontractService extends ServiceBase { ...@@ -552,7 +552,7 @@ class EntcontractService extends ServiceBase {
return reso; return reso;
} }
erchants = { var erchants = {
companyName: params.merchantName, companyName: params.merchantName,
appId: reso.data.appId, appId: reso.data.appId,
mchtId: reso.data.mchtId, mchtId: reso.data.mchtId,
......
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