From 28efebf8d0cd446ed061cdfccbb6225e5dafbcad Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Fri, 20 Dec 2019 13:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=B9=B3=E5=8F=B0>=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=AE=A1=E7=90=86>=E5=85=85=E5=80=BC=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6--=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/QueryController.class.php | 5 +++-- Application/Home/View/default/Query/userRecharges.html | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 03ccdcd0c..4a5040c8f 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1873,9 +1873,10 @@ class QueryController extends BaseController list($records, $pagination, $count) = $this->paginate($query); $total = M('spend', 'tab_')->alias('s') - ->field($fieldS) + ->field("$fieldS, $fieldToday as recharge_cost_today") ->where($map) ->find(); + $total['recharge_cost_today'] = empty($total['recharge_cost_today']) ? '0.00' : $total['recharge_cost_today']; if (!empty($records)) { foreach ($records as &$list) { @@ -1888,7 +1889,7 @@ class QueryController extends BaseController $list['login_time'] = empty($list['login_time']) ? '--' : date('Y-m-d H:i:s', $list['login_time']); $list['register_time'] = empty($list['register_time']) ? '--' : date('Y-m-d H:i:s', $list['register_time']); $list['promote_account'] = empty($list['promote_account']) ? '--' : $list['promote_account']; - $list['recharge_cost_today'] = empty($list['recharge_cost_today']) ? '0.00' : $list['promote_account']; + $list['recharge_cost_today'] = empty($list['recharge_cost_today']) ? '0.00' : $list['recharge_cost_today']; } } } diff --git a/Application/Home/View/default/Query/userRecharges.html b/Application/Home/View/default/Query/userRecharges.html index 4b6b46a07..1e3e0d21e 100644 --- a/Application/Home/View/default/Query/userRecharges.html +++ b/Application/Home/View/default/Query/userRecharges.html @@ -159,8 +159,8 @@ -