Commit 46595767 by 王昆

gsb

parent cf561515
......@@ -81,6 +81,25 @@ class MerchantCtl extends CtlBase {
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
}
async saveAddr(params, pobj2, req) {
try {
if(!params.id) {
return system.getResult(null, "编辑失败,请联系平台增加开票信息");
}
if(!params.mail_to) {
return system.getResult(null, `联系人不能为空`);
}
if(!params.mail_mobile) {
return system.getResult(null, `联系电话不能为空`);
}
if(!params.mail_addr) {
return system.getResult(null, `邮寄地址不能为空`);
}
return await this.merchantSve.saveAddr(params);
} catch (error) {
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
}
}
......
......@@ -111,6 +111,10 @@ class MerchantService extends ServiceBase {
return system.getResultSuccess(u);
}
async saveAddr(params) {
let rs = await this.callms("merchant", "mchtAddrSave", params);
return rs;
}
async setChannel(rows) {
if(!rows) {
......
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