From 44dac56d85cec7547ddc93d7d68c57260113c863 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 24 Dec 2019 10:43:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=A0=E9=81=93=E7=BB=9F=E8=AE=A1bug?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PayChannelController.class.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/PayChannelController.class.php b/Application/Admin/Controller/PayChannelController.class.php index 023d1eb7b..e2223f8d7 100644 --- a/Application/Admin/Controller/PayChannelController.class.php +++ b/Application/Admin/Controller/PayChannelController.class.php @@ -333,15 +333,18 @@ class PayChannelController extends ThinkController //推广后台充值数据 $spreadMap['order_status'] = array('egt',1); $spreadMap['pay_way'] = array('egt',1); - $spreadMap['create_time'] = $map['pay_time']; + if($map['pay_time']) { + $spreadMap['create_time'] = $map['pay_time']; + } //推广后台 $spreadDataPay = M("coin_pay_order","tab_") ->field("sum(pay_amount) as pay_amount,pay_way") ->where($spreadMap) ->select(false); - - $map['create_time'] = $map['pay_time']; - unset($map['pay_time']); + if ($map['pay_time']) { + $map['create_time'] = $map['pay_time']; + unset($map['pay_time']); + } //充值平台币数据 $depositData = M('deposit','tab_') ->field('sum(pay_amount) as pay_amount,pay_way') @@ -349,6 +352,13 @@ class PayChannelController extends ThinkController ->group('pay_way') ->select(false); + $bindMap['pay_status'] = 1; + $bindMap['pay_way'] = array('egt',1); + $bindMap['game_id'] =$_REQUEST['game_id']; + if ($map['pay_time']) { + $bindMap['create_time'] = $map['pay_time']; + } + $bindRechargeData = M('bind_recharge','tab_') ->field('sum(real_amount) as pay_amount,pay_way') ->where(array('pay_status'=>1,'pay_way'=>array('egt',1),'game_id'=>$_REQUEST['game_id'],'create_time'=>$map['pay_time']))