配置修改
This commit is contained in:
@ -141,7 +141,7 @@ class UserLogic extends Logic
|
||||
{
|
||||
$field = [
|
||||
'id', 'sn','nickname','avatar','mobile','sex','birthday','tag_ids',
|
||||
'remark','user_money','user_growth','user_integral','earnings', 'disable'
|
||||
'remark','user_money','user_growth','user_integral','earnings', 'disable', 'city_id'
|
||||
];
|
||||
$user = User::field($field)->where(['del' => 0, 'id' => $id])->findOrEmpty();
|
||||
|
||||
@ -170,6 +170,7 @@ class UserLogic extends Logic
|
||||
'tag_ids' => $post['select'],
|
||||
'remark' => $post['remark'],
|
||||
'disable' => $post['disable'],
|
||||
'city_id' => (int)($post['city_id'] ?? 0),
|
||||
'update_time' => time()
|
||||
];
|
||||
User::update($data);
|
||||
|
||||
Reference in New Issue
Block a user