master
ELF 4 years ago
parent c7390f4c2e
commit 404da03cd0

@ -430,7 +430,7 @@ class TestingResourceController extends BaseController
$totalQuota = $role['testing_other_quota'] + ($this->gameBaseQuota[$role['game_id']] ?? 0); $totalQuota = $role['testing_other_quota'] + ($this->gameBaseQuota[$role['game_id']] ?? 0);
if (!is_null($bindRole)) { if (!is_null($bindRole)) {
$totalQuota += M('spend', 'tab_') $totalQuota += M('spend', 'tab_')
->where(['game_id' => $role['game_id'], 'game_player_id' => $bindRole['role_id']]) ->where(['game_id' => $role['game_id'], 'game_player_id' => $bindRole['role_id'], 'pay_status' => 1])
->group('game_id,game_player_id') ->group('game_id,game_player_id')
->sum('pay_amount'); ->sum('pay_amount');
} }

Loading…
Cancel
Save