|
|
|
@ -430,7 +430,7 @@ class TestingResourceController extends BaseController
|
|
|
|
|
$totalQuota = $role['testing_other_quota'] + ($this->gameBaseQuota[$role['game_id']] ?? 0);
|
|
|
|
|
if (!is_null($bindRole)) {
|
|
|
|
|
$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')
|
|
|
|
|
->sum('pay_amount');
|
|
|
|
|
}
|
|
|
|
|