|
|
|
@ -359,7 +359,9 @@ class TestingResourceService
|
|
|
|
|
$userAccount = $params['user_account'] ?? '';
|
|
|
|
|
$records = $params['records'] ?? [];
|
|
|
|
|
|
|
|
|
|
if ($promote && $promote['level'] > 2) {
|
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
|
$permissionPromote = $promoteService->getTSPermPromote($promote);
|
|
|
|
|
if ($permissionPromote && $permissionPromote['level'] > 2) {
|
|
|
|
|
throw new \Exception('权限不足');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -396,9 +398,6 @@ class TestingResourceService
|
|
|
|
|
throw new \Exception('区服不存在');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
|
$permissionPromote = $promoteService->getTSPermPromote($promote);
|
|
|
|
|
|
|
|
|
|
$role = M('user_play_info', 'tab_')
|
|
|
|
|
->field(['id', 'role_id', 'promote_id', 'game_id', 'testing_other_quota'])
|
|
|
|
|
->where(['user_id' => $user['id'], 'game_id' => $gameId, 'server_id' => $server['server_id'], 'role_id' => $roleId])
|
|
|
|
|