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