lrf402788946 5 년 전
부모
커밋
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;
   }