|
|
|
@ -58,7 +58,7 @@ class PayChannelController extends ThinkController
|
|
|
|
|
// setPowerPromoteIds($map,'promote_id');
|
|
|
|
|
|
|
|
|
|
//游戏币计算
|
|
|
|
|
$data = M('spend','tab_')
|
|
|
|
|
$data = M('spend use index(pay_channel)','tab_')
|
|
|
|
|
->field("game_name,sum(pay_amount) as pay_amount,game_id")
|
|
|
|
|
->where($map)
|
|
|
|
|
->group('game_id')
|
|
|
|
@ -138,6 +138,7 @@ class PayChannelController extends ThinkController
|
|
|
|
|
->join("inner join tab_test_white_list on tab_game_supersign.user_id=tab_test_white_list.user_id")
|
|
|
|
|
->where($superMap)
|
|
|
|
|
->sum('pay_price');
|
|
|
|
|
|
|
|
|
|
$superSignData['test_coin'] = $testSuperSignCost?$testSuperSignCost:0;
|
|
|
|
|
$superSignData['sum'] = $superSignData['pay_amount']?$superSignData['pay_amount']:0;
|
|
|
|
|
$superSignData['pay_amount'] = $superSignData['pay_amount'] - $superSignData['test_coin'];
|
|
|
|
@ -189,6 +190,7 @@ class PayChannelController extends ThinkController
|
|
|
|
|
$this->assign('spreadData',$spreadData);
|
|
|
|
|
|
|
|
|
|
$channelData = $this->getPayChannel($map);
|
|
|
|
|
|
|
|
|
|
$testOrderChannelDatas = $this->getTestOrderPayChannel($maptestorder);
|
|
|
|
|
$payTypeData['支付宝支付金额'] = 0;
|
|
|
|
|
$payTypeData['微信支付金额'] = 0;
|
|
|
|
@ -405,7 +407,7 @@ class PayChannelController extends ThinkController
|
|
|
|
|
public function getPayChannel($map) {
|
|
|
|
|
//支付
|
|
|
|
|
//游戏订单渠道
|
|
|
|
|
$channelData = M('spend','tab_')
|
|
|
|
|
$channelData = M('spend use index(pay_channel_type)','tab_')
|
|
|
|
|
->field('sum(pay_amount) as pay_amount,pay_way')
|
|
|
|
|
->where($map)
|
|
|
|
|
->group('pay_way')
|
|
|
|
|