|
|
|
@ -100,12 +100,20 @@ class PayChannelController extends ThinkController
|
|
|
|
|
$handleCoinData[$value['game_id']] = $value['platform_coin'];
|
|
|
|
|
}
|
|
|
|
|
//测试白名单
|
|
|
|
|
$testList = implode(",",M("test_white_list","tab_")->getField("user_id",true));
|
|
|
|
|
$testList = M("test_white_list","tab_")->getField("user_id",true);
|
|
|
|
|
|
|
|
|
|
$conditions = [];
|
|
|
|
|
if (empty($testList)) {
|
|
|
|
|
$conditions['_string'] = '1=0';
|
|
|
|
|
} else {
|
|
|
|
|
$conditions['user_id'] = ['in', $testList];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//测试数据汇总计算
|
|
|
|
|
$testData = M('spend','tab_')
|
|
|
|
|
->field("sum(pay_amount) as test_coin,game_name,game_id")
|
|
|
|
|
->where($map)
|
|
|
|
|
->where("user_id in ({$testList})")
|
|
|
|
|
->where($conditions)
|
|
|
|
|
->group('game_id')
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
|
|