|
|
@ -361,9 +361,6 @@ class User extends Controller |
|
|
|
$params = $this->request->param(); |
|
|
|
$params = $this->request->param(); |
|
|
|
$user_id = $params['user_id'] ?? 0; |
|
|
|
$user_id = $params['user_id'] ?? 0; |
|
|
|
unset($params['user_id']); |
|
|
|
unset($params['user_id']); |
|
|
|
if (isset($params['status']) && $params['status']) { |
|
|
|
|
|
|
|
$params['user_type'] = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
UserModel::where('user_id', $user_id)->update($params); |
|
|
|
UserModel::where('user_id', $user_id)->update($params); |
|
|
|
return $this->renderSuccess('ok'); |
|
|
|
return $this->renderSuccess('ok'); |
|
|
|
} |
|
|
|
} |
|
|
|