feat(user): 更新用户标签ID字段更新逻辑
This commit is contained in:
parent
eae6735c30
commit
cb6ddb2dbb
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user