Commit d0a52c46 by 王昆

gsb

parent 7ed68e6c
......@@ -110,13 +110,13 @@ class LaoActionApi extends APIBase {
if(!data.companyName) {
return system.getResult(-1, `商户名称为空`);
}
if(!data.mtchId) {
if(!data.mchtId) {
return system.getResult(-1, `商户号为空`);
}
var loginUser = await this.usersSve.findOne({mtchId: data.mtchId});
var loginUser = await this.usersSve.findOne({mtchId: data.mchtId});
if (loginUser) {
loginUser.com_name = data.companyName;
loginUser.mtchId = data.mtchId;
loginUser.mtchId = data.mchtId;
await loginUser.save();
} else {
loginUser = await this.usersSve.create({
......
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