|
|
|
@ -30,6 +30,10 @@ class UserController extends BaseController
|
|
|
|
|
$userService = new UserService();
|
|
|
|
|
$result = $userService->loginSdk($params);
|
|
|
|
|
if ($result['status']) {
|
|
|
|
|
$user = M('user', 'tab_')->where(['id' => $result['user_id']])->find();
|
|
|
|
|
if ($user['age_status'] == 3) {
|
|
|
|
|
$this->set_message(1001, "fail", "未成年禁止登入,请稍后再试!");
|
|
|
|
|
}
|
|
|
|
|
echo base64_encode(json_encode($result['data']));
|
|
|
|
|
} else {
|
|
|
|
|
$this->set_message(1001, "fail", $result['message']);
|
|
|
|
@ -1439,6 +1443,8 @@ class UserController extends BaseController
|
|
|
|
|
$this->set_message(1001, "fail", "操作数据不能为空");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
forceOffline($request['user_id']);
|
|
|
|
|
|
|
|
|
|
$params = [
|
|
|
|
|
'user_id' => $request['user_id'],
|
|
|
|
|
'game_id' => $request['game_id'],
|
|
|
|
@ -2524,6 +2530,9 @@ class UserController extends BaseController
|
|
|
|
|
$log['remarks'] = '修改成功';
|
|
|
|
|
log_action($log);
|
|
|
|
|
$data['status'] = 200;
|
|
|
|
|
|
|
|
|
|
forceOffline($user['user_id']);
|
|
|
|
|
|
|
|
|
|
echo base64_encode(json_encode($data));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|