From e445108eb67c8fc0bdb57b7bdce7f5d7f4885a84 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 25 Mar 2020 15:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=B8=A0=E9=81=93=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PayChannelController.class.php | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/Application/Admin/Controller/PayChannelController.class.php b/Application/Admin/Controller/PayChannelController.class.php index b305ff4b3..a98f51923 100644 --- a/Application/Admin/Controller/PayChannelController.class.php +++ b/Application/Admin/Controller/PayChannelController.class.php @@ -198,6 +198,8 @@ class PayChannelController extends ThinkController $payTypeData['支付宝支付金额'] = 0; $payTypeData['微信支付金额'] = 0; $payTypeData['快捷支付金额'] = 0; + $payTypeData['苹果支付金额'] = 0; + $payTypeData['易宝支付金额'] = 0; $payTypeData['其他支付金额'] = 0; foreach($channelData as $key => $value) { @@ -208,6 +210,10 @@ class PayChannelController extends ThinkController $payTypeData['微信支付金额'] += number_format($value['pay_amount'],2,'.',''); } else if ($value['pay_way']==15) { $payTypeData['快捷支付金额'] += number_format($value['pay_amount'],2,'.',''); + } else if($value['pay_way'] ==7){ + $payTypeData['苹果支付金额'] += number_format($value['pay_amount'],2,'.',''); + } else if($value['pay_way'] ==17){ + $payTypeData['易宝支付金额'] += number_format($value['pay_amount'],2,'.',''); } else if($value['pay_way']){ $payTypeData['其他支付金额'] += number_format($value['pay_amount'],2,'.',''); } @@ -1047,6 +1053,10 @@ class PayChannelController extends ThinkController $data[$key]['pay_way'] = '微信支付'; } else if ($value['pay_way']==15) { $data[$key]['pay_way'] = '快捷支付'; + } else if ($value['pay_way']==7) { + $data[$key]['pay_way'] = '苹果支付'; + } else if ($value['pay_way']==17) { + $data[$key]['pay_way'] = '易宝支付'; } else if($value['pay_way']){ $data[$key]['pay_way'] = '其他支付'; } @@ -1121,6 +1131,10 @@ class PayChannelController extends ThinkController $data[$key]['pay_way'] = '微信支付'; } else if ($value['pay_way']==15) { $data[$key]['pay_way'] = '快捷支付'; + } else if ($value['pay_way']==7) { + $data[$key]['pay_way'] = '苹果支付'; + } else if ($value['pay_way']==17) { + $data[$key]['pay_way'] = '易宝支付'; } else if($value['pay_way']){ $data[$key]['pay_way'] = '其他支付'; } @@ -1163,6 +1177,10 @@ class PayChannelController extends ThinkController $data[$key]['pay_way'] = '微信支付'; } else if ($value['pay_way']==15) { $data[$key]['pay_way'] = '快捷支付'; + } else if ($value['pay_way']==7) { + $data[$key]['pay_way'] = '苹果支付'; + } else if ($value['pay_way']==17) { + $data[$key]['pay_way'] = '易宝支付'; } else if($value['pay_way']){ $data[$key]['pay_way'] = '其他支付'; } @@ -1212,6 +1230,8 @@ class PayChannelController extends ThinkController $payTypeData['支付宝支付金额'] = 0; $payTypeData['微信支付金额'] = 0; $payTypeData['快捷支付金额'] = 0; + $payTypeData['苹果支付金额'] = 0; + $payTypeData['易宝支付金额'] = 0; $payTypeData['其他支付金额'] = 0; foreach($sumData as $key => $value) { @@ -1222,6 +1242,10 @@ class PayChannelController extends ThinkController $payTypeData['微信支付金额'] += number_format($value['pay_amount'],2,'.',''); } else if ($value['pay_way']==15) { $payTypeData['快捷支付金额'] += number_format($value['pay_amount'],2,'.',''); + } else if ($value['pay_way']==7) { + $payTypeData['苹果支付金额'] += number_format($value['pay_amount'],2,'.',''); + } else if ($value['pay_way']==17) { + $payTypeData['易宝支付金额'] += number_format($value['pay_amount'],2,'.',''); } else if($value['pay_way']){ $payTypeData['其他支付金额'] += number_format($value['pay_amount'],2,'.',''); } @@ -1232,6 +1256,9 @@ class PayChannelController extends ThinkController $payTypeData['微信支付金额'] = number_format($payTypeData['微信支付金额'],2,'.',''); $payTypeData['快捷支付金额'] = number_format($payTypeData['快捷支付金额'],2,'.',''); $payTypeData['其他支付金额'] = number_format($payTypeData['其他支付金额'],2,'.',''); + $payTypeData['苹果支付金额'] = number_format($payTypeData['苹果支付金额'],2,'.',''); + $payTypeData['易宝支付金额'] = number_format($payTypeData['易宝支付金额'],2,'.',''); + $this->assign('payTypeData',$payTypeData); @@ -1387,6 +1414,10 @@ class PayChannelController extends ThinkController $value['pay_way'] = '微信支付'; } else if ($value['pay_way'] == 15) { $value['pay_way'] = '快捷支付'; + } else if ($value['pay_way']==7) { + $data[$key]['pay_way'] = '苹果支付'; + } else if ($value['pay_way']==17) { + $data[$key]['pay_way'] = '易宝支付'; } else if ($value['pay_way']) { $value['pay_way'] = '其他支付'; } @@ -1488,6 +1519,10 @@ class PayChannelController extends ThinkController $value['pay_way'] = '微信支付'; } else if ($value['pay_way'] == 15) { $value['pay_way'] = '快捷支付'; + } else if ($value['pay_way']==7) { + $data[$key]['pay_way'] = '苹果支付'; + } else if ($value['pay_way']==17) { + $data[$key]['pay_way'] = '易宝支付'; } else if ($value['pay_way']) { $value['pay_way'] = '其他支付'; } @@ -1552,6 +1587,10 @@ class PayChannelController extends ThinkController $value['pay_way'] = '微信支付'; } else if ($value['pay_way'] == 15) { $value['pay_way'] = '快捷支付'; + } else if ($value['pay_way']==7) { + $data[$key]['pay_way'] = '苹果支付'; + } else if ($value['pay_way']==17) { + $data[$key]['pay_way'] = '易宝支付'; } else if ($value['pay_way']) { $value['pay_way'] = '其他支付'; } @@ -1598,6 +1637,8 @@ class PayChannelController extends ThinkController $payTypeData['微信支付金额'] = 0; $payTypeData['快捷支付金额'] = 0; $payTypeData['其他支付金额'] = 0; + $payTypeData['苹果支付金额'] = number_format($payTypeData['苹果支付金额'],2,'.',''); + $payTypeData['易宝支付金额'] = number_format($payTypeData['易宝支付金额'],2,'.',''); foreach($sumData as $key => $value) { @@ -1607,6 +1648,10 @@ class PayChannelController extends ThinkController $payTypeData['微信支付金额'] += number_format($value['pay_amount'],2,'.',''); } else if ($value['pay_way']==15) { $payTypeData['快捷支付金额'] += number_format($value['pay_amount'],2,'.',''); + } else if ($value['pay_way']==7) { + $payTypeData['苹果支付金额'] += number_format($value['pay_amount'],2,'.',''); + } else if ($value['pay_way']==17) { + $payTypeData['易宝支付金额'] += number_format($value['pay_amount'],2,'.',''); } else if($value['pay_way']){ $payTypeData['其他支付金额'] += number_format($value['pay_amount'],2,'.',''); }