|
|
|
@ -360,14 +360,18 @@ class TestingResourceRepository
|
|
|
|
|
$statusText = '正常';
|
|
|
|
|
if (is_null($user) || is_null($testingUser)) {
|
|
|
|
|
$statusText = '错误';
|
|
|
|
|
} elseif ($user['lock_status'] != 1) {
|
|
|
|
|
$statusText = '锁定';
|
|
|
|
|
} elseif ($testingUser['status'] == 2) {
|
|
|
|
|
$statusText = '警告';
|
|
|
|
|
} elseif ($testingUser['status'] == 3) {
|
|
|
|
|
$statusText = '禁用';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_null($user)) {
|
|
|
|
|
$statusText .= '(账号不存在)';
|
|
|
|
|
} elseif ($user['lock_status'] != 1) {
|
|
|
|
|
$statusText .= '(账号锁定)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$records[] = [
|
|
|
|
|
'id' => $role['id'],
|
|
|
|
|
'game_name' => $role['game_name'],
|
|
|
|
@ -401,6 +405,7 @@ class TestingResourceRepository
|
|
|
|
|
$gameId = $params['game_id'] ?? 0;
|
|
|
|
|
$serverId = $params['server_id'] ?? '';
|
|
|
|
|
$account = $params['account'] ?? '';
|
|
|
|
|
$status = $params['status'] ?? 0;
|
|
|
|
|
$roleName = $params['role_name'] ?? '';
|
|
|
|
|
|
|
|
|
|
$conditions = [];
|
|
|
|
@ -434,6 +439,9 @@ class TestingResourceRepository
|
|
|
|
|
if ($createTimeEnd) {
|
|
|
|
|
$strCondition .= ' and create_time <=' . strtotime($createTimeEnd . ' 23:59:59');
|
|
|
|
|
}
|
|
|
|
|
if ($status != 0) {
|
|
|
|
|
$subConditions['status'] = $status;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$subConditions['verify_status'] = 1;
|
|
|
|
|
$subSql = M('testing_user', 'tab_')->field(['user_id'])->where($subConditions)->select(false);
|
|
|
|
|