Merge branch 'release-1.0.0' of 47.111.118.107:wmtx/platform into release-1.0.0

master
ELF 5 years ago
commit 460e7288a1

@ -65,6 +65,7 @@ class PayChannelController extends ThinkController
//平台币充值金额计算 //平台币充值金额计算
$coinMap['pay_source'] = 2; $coinMap['pay_source'] = 2;
$coinMap['extend'] = array('eq',''); $coinMap['extend'] = array('eq','');
$coinMap['tab_deposit.pay_way'] = array('egt',1);
// setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); // setPowerPromoteIds($coinMap,'tab_deposit.promote_id');
$coinData = M('pay_info','tab_') $coinData = M('pay_info','tab_')
@ -388,18 +389,24 @@ class PayChannelController extends ThinkController
->group('pay_way') ->group('pay_way')
->select(false); ->select(false);
if ($_REQUEST['game_id']) { if ($_REQUEST['game_id']) {
if ($map['pay_way']) {
$map['tab_deposit.pay_way'] = $map['pay_way']; $map['tab_deposit.pay_way'] = $map['pay_way'];
unset($map['pay_way']);
}
if ($map['create_time']) {
$map['tab_deposit.create_time'] = $map['create_time']; $map['tab_deposit.create_time'] = $map['create_time'];
unset($map['create_time']);
}
$map['tab_deposit.pay_source'] = 2; $map['tab_deposit.pay_source'] = 2;
$map['tab_pay_info.extend'] = ''; $map['tab_pay_info.extend'] = '';
unset($map['pay_way']);
unset($map['create_time']);
$depositData = M('pay_info','tab_') $depositData = M('pay_info','tab_')
->join("inner join tab_deposit on tab_pay_info.order_id=tab_deposit.pay_order_number") ->join("inner join tab_deposit on tab_pay_info.order_id=tab_deposit.pay_order_number")
->field('sum(pay_amount) as pay_amount,tab_deposit.pay_way as pay_way') ->field('sum(pay_amount) as pay_amount,tab_deposit.pay_way as pay_way')
->where($map) ->where($map)
->group('tab_deposit.pay_way') ->group('tab_deposit.pay_way')
->select(false); ->select(false);
// var_dump($depositData);die();
} }
$bindMap['pay_status'] = 1; $bindMap['pay_status'] = 1;

Loading…
Cancel
Save