lrf402788946 4 роки тому
батько
коміт
50ab2cee8a
1 змінених файлів з 4 додано та 1 видалено
  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;
   }