Commit 4affafe2 by zhaoxiqing

gsi

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