lqmac 8 months ago
parent f764ef4615
commit 24eefa3385
  1. 3
      app/api/controller/User.php

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

Loading…
Cancel
Save