推广平台>数据管理>订单查询--更新

master
chenxiaojun 5 years ago
parent 58399f4c69
commit 45f061d81c

@ -22,6 +22,11 @@ class QueryController extends BaseController
2 => '微信', 2 => '微信',
]; ];
public static $payStatus = [
0 => '下单未支付',
1 => '充值成功',
];
public function recharge($p = 0) public function recharge($p = 0)
{ {
$page = intval(I('p', 1)); $page = intval(I('p', 1));
@ -85,8 +90,14 @@ class QueryController extends BaseController
} }
} }
} }
if (isset($_REQUEST['pay_status']) && $_REQUEST['pay_status'] !== '') {
$payStatus = intval(I('pay_status'));
if (in_array($payStatus, array_keys(QueryController::$payStatus))) {
$map['tab_spend.pay_status'] = $payStatus;
}
}
$map['tab_spend.pay_time'] = ['between', [$begTime, $endTime - 1]]; $map['tab_spend.pay_time'] = ['between', [$begTime, $endTime - 1]];
$map['tab_spend.pay_status'] = 1;
$map['tab_spend.is_check'] = ['neq', 2]; $map['tab_spend.is_check'] = ['neq', 2];
$data = []; $data = [];
@ -161,6 +172,8 @@ class QueryController extends BaseController
break; break;
} }
$list['user_account'] = substr($list['user_account'], 0, 2) . '******' . substr($list['user_account'], 8); $list['user_account'] = substr($list['user_account'], 0, 2) . '******' . substr($list['user_account'], 8);
$list['pay_status'] = isset(QueryController::$payStatus[$list['pay_status']]) ? QueryController::$payStatus[$list['pay_status']] : '未知状态';
$list['sdk_version'] = getSDKTypeName($list['sdk_version']);
//订单隐藏算法 //订单隐藏算法
$orderLen = strlen($list['pay_order_number']); $orderLen = strlen($list['pay_order_number']);
@ -210,6 +223,7 @@ class QueryController extends BaseController
$this->assign('serverData', $serverData['data']); $this->assign('serverData', $serverData['data']);
$this->assign('ownId', $ownId); $this->assign('ownId', $ownId);
$this->assign('payWayData', QueryController::$payWay); $this->assign('payWayData', QueryController::$payWay);
$this->assign('payStatusData', QueryController::$payStatus);
$this->meta_title = "订单查询"; $this->meta_title = "订单查询";
$this->display(); $this->display();
} }

@ -144,6 +144,19 @@
</select> </select>
</div> </div>
<div class="form-group normal_space">
<select id="pay_status" name="pay_status" class="reselect select_gallery" style="min-width:130px;">
<option value="-1">充值状态</option>
<foreach name="payStatusData" item="vo" key="k">
<if condition="$k eq I('pay_status',-1)">
<option value="{$k}" selected>{$vo}</option>
<else/>
<option value="{$k}">{$vo}</option>
</if>
</foreach>
</select>
</div>
<div class="form-group normal_space"> <div class="form-group normal_space">
<input type="submit" class="submit" id='submit' url="{:U('Query/recharge','model='.$model['name'],false)}" <input type="submit" class="submit" id='submit' url="{:U('Query/recharge','model='.$model['name'],false)}"
value="查询"> value="查询">
@ -169,8 +182,10 @@
<th>玩家账号</th> <th>玩家账号</th>
<th>游戏订单</th> <th>游戏订单</th>
<th>支付方式</th> <th>支付方式</th>
<th>充值状态</th>
<th>订单金额</th> <th>订单金额</th>
<th>游戏名称</th> <th>游戏名称</th>
<th>设备类型</th>
<th>区服</th> <th>区服</th>
<th>角色名</th> <th>角色名</th>
<th>部门长</th> <th>部门长</th>
@ -192,8 +207,10 @@
<td title="玩家ID{$vo.user_id}">{$vo.user_account}</td> <td title="玩家ID{$vo.user_id}">{$vo.user_account}</td>
<td>{$vo.pay_order_number}</td> <td>{$vo.pay_order_number}</td>
<td>{:get_pay_way($vo['pay_way'])}</td> <td>{:get_pay_way($vo['pay_way'])}</td>
<td>{$vo.pay_status}</td>
<td>{$vo.pay_amount}</td> <td>{$vo.pay_amount}</td>
<td>{$vo.game_name}</td> <td>{$vo.game_name}</td>
<td>{$vo.sdk_version}</td>
<td>{$vo.server_name}</td> <td>{$vo.server_name}</td>
<td>{$vo.game_player_name}</td> <td>{$vo.game_player_name}</td>
<td>{$vo.p_p_pro_account}({$vo.p_p_pro_real_name})</td> <td>{$vo.p_p_pro_account}({$vo.p_p_pro_real_name})</td>

Loading…
Cancel
Save