|
|
@ -199,43 +199,23 @@ class PayChannelController extends ThinkController
|
|
|
|
$payTypeData['支付宝支付金额']['amount'] = 0;
|
|
|
|
$payTypeData['支付宝支付金额']['amount'] = 0;
|
|
|
|
$payTypeData['微信支付金额']['amount'] = 0;
|
|
|
|
$payTypeData['微信支付金额']['amount'] = 0;
|
|
|
|
$payTypeData['快捷支付金额']['amount'] = 0;
|
|
|
|
$payTypeData['快捷支付金额']['amount'] = 0;
|
|
|
|
$payTypeData['苹果支付金额']['amount'] = 0;
|
|
|
|
|
|
|
|
$payTypeData['汇付宝支付金额']['amount'] = 0;
|
|
|
|
|
|
|
|
$payTypeData['易宝支付金额']['amount'] = 0;
|
|
|
|
|
|
|
|
$payTypeData['其他支付金额']['amount'] = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$payTypeData['支付宝支付金额']['pay_way'] = "1,9";
|
|
|
|
$payTypeData['支付宝支付金额']['pay_way'] = "1";
|
|
|
|
$payTypeData['微信支付金额']['pay_way'] = "2,3";
|
|
|
|
$payTypeData['微信支付金额']['pay_way'] = "2";
|
|
|
|
$payTypeData['快捷支付金额']['pay_way'] = "4";
|
|
|
|
$payTypeData['快捷支付金额']['pay_way'] = "4";
|
|
|
|
$payTypeData['苹果支付金额']['pay_way'] = "15";
|
|
|
|
|
|
|
|
$payTypeData['汇付宝支付金额']['pay_way'] = "7";
|
|
|
|
|
|
|
|
$payTypeData['易宝支付金额']['pay_way'] = "17";
|
|
|
|
|
|
|
|
$payTypeData['其他支付金额']['pay_way'] = "1,9,4,2,3,15,7,17";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$payTypeData['支付宝支付金额']['type'] = "in";
|
|
|
|
$payTypeData['支付宝支付金额']['type'] = "in";
|
|
|
|
$payTypeData['微信支付金额']['type'] = "in";
|
|
|
|
$payTypeData['微信支付金额']['type'] = "in";
|
|
|
|
$payTypeData['快捷支付金额']['type'] = "in";
|
|
|
|
$payTypeData['快捷支付金额']['type'] = "in";
|
|
|
|
$payTypeData['苹果支付金额']['type'] = "in";
|
|
|
|
|
|
|
|
$payTypeData['汇付宝支付金额']['type'] = "in";
|
|
|
|
|
|
|
|
$payTypeData['易宝支付金额']['type'] = "in";
|
|
|
|
|
|
|
|
$payTypeData['其他支付金额']['type'] = "not in";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach($channelData as $key => $value) {
|
|
|
|
foreach($channelData as $key => $value) {
|
|
|
|
|
|
|
|
|
|
|
|
if ($value['pay_way']==1 || $value['pay_way']==9 ) {
|
|
|
|
if ($value['pay_way']==1 || $value['pay_way']==9 ) {
|
|
|
|
$payTypeData['支付宝支付金额']['amount'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
$payTypeData['支付宝支付金额']['amount'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
} else if ($value['pay_way']==4 ) {
|
|
|
|
|
|
|
|
$payTypeData['汇付宝支付金额']['amount'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
|
|
|
|
} else if ($value['pay_way']==2 || $value['pay_way']==3 ) {
|
|
|
|
} else if ($value['pay_way']==2 || $value['pay_way']==3 ) {
|
|
|
|
$payTypeData['微信支付金额']['amount'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
$payTypeData['微信支付金额']['amount'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
} else if ($value['pay_way']==15) {
|
|
|
|
} else {
|
|
|
|
$payTypeData['快捷支付金额']['amount'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
$payTypeData['快捷支付金额']['amount'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
} else if($value['pay_way'] ==7){
|
|
|
|
|
|
|
|
$payTypeData['苹果支付金额']['amount'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
|
|
|
|
} else if($value['pay_way'] ==17){
|
|
|
|
|
|
|
|
$payTypeData['易宝支付金额']['amount'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
|
|
|
|
} else if($value['pay_way']){
|
|
|
|
|
|
|
|
$payTypeData['其他支付金额']['amount'] += number_format($value['pay_amount'],2,'.','');
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|