diff --git a/Application/Admin/Controller/AutoController.class.php b/Application/Admin/Controller/AutoController.class.php index a3a75f42a..a7c908c24 100644 --- a/Application/Admin/Controller/AutoController.class.php +++ b/Application/Admin/Controller/AutoController.class.php @@ -955,4 +955,20 @@ public function auto_rrdae(){ } } } + + //用户推广员数据刷新 + public function updateUserPromoteAccount() + { + $map['promote_id'] = ['gt', 0]; + $map['_string'] = "promote_account = '' or promote_account = '自然注册' or promote_account = '官方渠道'"; + $userData = M('user', 'tab_')->field('id,promote_id')->where($map)->select(); + $userPlayData = M('user_play', 'tab_')->field('id,promote_id')->where($map)->select(); + $userPlayInfoData = M('user_play_info', 'tab_')->field('id,promote_id')->where($map)->select(); + + + foreach ($userData as $list) { + $promoteAccount = M('promote', 'tab_')->where(array('id' => $list['promote_id']))->getField('account'); + $res = M()->query("update `tab_user` set promote_account = '{$promoteAccount}' where id = {$list['id']}"); + } + } } diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index f7e04a452..4b3a27fdc 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -32,7 +32,7 @@ class QueryController extends BaseController $serverId = trim(I('server_id', '')); $gamePlayerName = trim(I('game_player_name', '')); $userAccount = trim(I('user_account', '')); - $orderNumber = trim(I('order_number', '')); + $payOrderNumber = trim(I('pay_order_number', '')); $nowTime = date('Y-m-d'); $initBegTime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime))); $initBegTime = empty(I('begtime')) ? $initBegTime : I('begtime'); @@ -71,8 +71,8 @@ class QueryController extends BaseController if (!empty($userAccount)) { $map['tab_spend.user_account'] = $userAccount; } - if (!empty($orderNumber)) { - $map['tab_spend.order_number'] = $orderNumber; + if (!empty($payOrderNumber)) { + $map['tab_spend.pay_order_number'] = $payOrderNumber; } if (isset($_REQUEST['pay_way']) && $_REQUEST['pay_way'] !== '') { $payWay = intval(I('pay_way')); @@ -146,7 +146,7 @@ class QueryController extends BaseController $list['user_account'] = substr($list['user_account'], 0, 2) . '******' . substr($list['user_account'], 8); //订单隐藏算法 - $orderLen = strlen($list['order_number']); + $orderLen = strlen($list['pay_order_number']); $strLen = 4; $hideChar = ''; @@ -158,7 +158,7 @@ class QueryController extends BaseController $hideChar .= '*'; } - $list['order_number'] = substr($list['order_number'], 0, $strLen) . $hideChar . substr($list['order_number'], $orderLen - $strLen); + $list['pay_order_number'] = substr($list['pay_order_number'], 0, $strLen) . $hideChar . substr($list['pay_order_number'], $orderLen - $strLen); } } @@ -172,7 +172,7 @@ class QueryController extends BaseController $parameter['server_id'] = $serverId; $parameter['game_player_name'] = $gamePlayerName; $parameter['user_account'] = $userAccount; - $parameter['order_number'] = $orderNumber; + $parameter['pay_order_number'] = $payOrderNumber; $parameter['own_id'] = $ownId; $parameter['level_promote_2'] = $levelPromote[0]; $parameter['level_promote_3'] = $levelPromote[1]; diff --git a/Application/Home/View/default/Query/recharge.html b/Application/Home/View/default/Query/recharge.html index b59d47b23..2fba74b25 100644 --- a/Application/Home/View/default/Query/recharge.html +++ b/Application/Home/View/default/Query/recharge.html @@ -127,8 +127,8 @@
- +
@@ -190,7 +190,7 @@ {$vo.user_account} - {$vo.order_number} + {$vo.pay_order_number} {:get_pay_way($vo['pay_way'])} {$vo.pay_amount} {$vo.game_name}