diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 3382bdd5b..5b06ee2a3 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -99,7 +99,7 @@ class QueryController extends BaseController $map['tab_spend.is_check'] = ['neq', 2]; $data = M('Spend', 'tab_') - ->field('tab_spend.*,tab_promote.account as pro_account,tab_promote.real_name as pro_real_name,tab_promote.grand_id as pro_grand_id') + ->field('tab_spend.*,tab_promote.account as pro_account,tab_promote.real_name as pro_real_name,tab_promote.grand_id as pro_grand_id,tab_promote.parent_id as pro_parent_id') ->join('tab_game on tab_spend.game_id = tab_game.id') ->join('left join tab_promote on tab_spend.promote_id = tab_promote.id') ->where($map) @@ -114,6 +114,14 @@ class QueryController extends BaseController if (!empty($data)) { foreach ($data as &$list) { + if ($list['pro_grand_id'] > 0) { + $thisPromoteData = D('Promote') + ->field('account,real_name') + ->where(array('id' => $list['pro_parent_id'])) + ->find(); + $list['p_pro_account'] = $thisPromoteData['account']; + $list['p_pro_real_name'] = $thisPromoteData['real_name']; + } $list['user_account'] = substr($list['user_account'], 0, 2) . '******' . substr($list['user_account'], 8); } } @@ -148,7 +156,7 @@ class QueryController extends BaseController $this->assign('pID', PID); $this->assign('ownId', I('own_id')); $this->assign('payWayData', QueryController::$payWay); - $this->meta_title = "充值明细"; + $this->meta_title = "订单查询"; $this->display(); } @@ -1880,6 +1888,7 @@ class QueryController extends BaseController } $this->assign('list_data', $spendData); + $this->meta_title = "订单详情"; $this->display('view_spend_detailed'); } } diff --git a/Application/Home/View/default/Public/promote_base.html b/Application/Home/View/default/Public/promote_base.html index 73b31b407..fb122b97d 100644 --- a/Application/Home/View/default/Public/promote_base.html +++ b/Application/Home/View/default/Public/promote_base.html @@ -51,7 +51,7 @@