Commit e16e2d99 by 孙亚楠

d

parent f8584396
......@@ -5,6 +5,7 @@ class MerchantCtl extends CtlBase {
super();
this.merchantSve = system.getObject("service.saas.merchantSve");
this.merchantuserSve = system.getObject("service.uc.merchantuserSve");
this.baseUrl = "https://xxxxxxxxxxxx";
}
async dics(params, pobj2, req) {
......@@ -36,7 +37,11 @@ class MerchantCtl extends CtlBase {
try {
params.is_sign = 1;
this.doTimeCondition(params, ["createBegin", "createEnd"]);
return await this.merchantSve.page(params);
let list = await this.merchantSve.page(params);
for (let item of list.data.rows) {
item.qrcode = encodeURIComponent(this.baseUrl + "?mechtId=" +item.id);
}
return system.getResult(list);
} catch (error) {
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
......
......@@ -191,7 +191,7 @@ class System {
let dev = "http://39.107.234.14";
return {
// 公共服务
common: local + ":3102" + path,
common: dev + ":3102" + path,
// 商户服务
merchant: dev + ":3101" + path,
......
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