Commit 417f5379 by 孙亚楠

d

parent af1ff0bc
......@@ -7,6 +7,7 @@ class MerchantUserCtl extends CtlBase {
constructor() {
super();
this.userSve = system.getObject("service.uc.userSve");
this.merchantSve = system.getObject("service.merchant.merchantSve");
}
async save(params, pobj2, req) {
......@@ -29,6 +30,11 @@ class MerchantUserCtl extends CtlBase {
if (!params.mobile) {
return system.getResult(null, "请选择商户");
}
let merchantBean = await this.merchantSve.merchantOfInfo({id: this.trim(params.uctype_id)});
if(merchantBean.status!=0 || !merchantBean.data || merchantBean.data.audit_status!="1"){
return system.getResult(null, `商户【${params.uctype_id}】不存在`);
}
validation.check(params, "real_name", {name: "姓名", is_require: true});
validation.check(params, "mobile", {name: "联系电话", is_require: true});
validation.check(params, "ucname", {name: "用户名", is_require: true});
......
......@@ -199,9 +199,9 @@ class System {
// 用户服务
sve_uc: dev + ":3651" + path,
// 商户服务
sve_merchant: dev + ":3652" + path,
sve_merchant: local + ":3652" + path,
// 订单服务
sve_order: dev + ":3653" + path,
sve_order: local + ":3653" + path,
}
} else {
return {
......
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