lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
50ab2cee8a
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      app/service/user.js

+ 4 - 1
app/service/user.js

@@ -171,7 +171,10 @@ class UserService extends CrudService {
     if (!user) {
       throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '用户信息不存在');
     }
-    const res = await this.model.update({ name, mobile }, { $set: appopenid });
+    const res = await this.model.update(
+      { name, mobile },
+      { $set: { appopenid } }
+    );
     return res;
   }