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 @@ - 注册时间 - + 注册时间 +