feat(user): 更新用户标签ID字段更新逻辑

This commit is contained in:
mkm 2024-06-17 18:00:40 +08:00
parent eae6735c30
commit cb6ddb2dbb

View File

@ -118,14 +118,15 @@ class UserLogic extends BaseLogic
Db::startTrans();
try {
User::where('id', $params['id'])->update([
'avatar' => $params['avatar'] ?? '',
'real_name' => $params['real_name'],
'nickname' => $params['nickname'],
'account' => $params['account'],
'password' => $params['password'] ?? '',
'mobile' => $params['mobile'] ?? '',
'sex' => $params['sex'] ?? 0,
'is_disable' => $params['is_disable'] ?? 0,
// 'avatar' => $params['avatar'] ?? '',
// 'real_name' => $params['real_name'],
// 'nickname' => $params['nickname'],
// 'account' => $params['account'],
// 'password' => $params['password'] ?? '',
// 'mobile' => $params['mobile'] ?? '',
// 'sex' => $params['sex'] ?? 0,
// 'is_disable' => $params['is_disable'] ?? 0,
'label_id'=>$params['label_id']
]);
Db::commit();