配置修改

This commit is contained in:
2026-07-13 16:33:09 +08:00
parent 9998f4651b
commit d1a15a4c42
15 changed files with 348 additions and 38 deletions

View File

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