@@ -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;