游戏充值预下单

master
zhanglingsheng 5 years ago
parent fb425d3e91
commit 47628f2981

@ -52,14 +52,13 @@ class BehaviorLogController extends ThinkController
$map['promote_id'] = ['in', $promoteIds]; $map['promote_id'] = ['in', $promoteIds];
} }
} }
$data = M('pay_info', 'tab_')->join('tab_server on tab_pay_info.server_id = tab_server.server_num AND tab_pay_info.game_id = tab_server.game_id')->where($map)->order('tab_pay_info.id DESC')->page($p, $row)->select(); $data = M('pay_info', 'tab_')->field('tab_pay_info.id,tab_pay_info.user_account,extend,tab_pay_info.create_time,tab_pay_info.game_name,tab_pay_info.server_name,tab_pay_info.promote_account,tab_pay_info.order_id,tab_pay_info.game_player_id,tab_pay_info.game_player_name,price')->join('tab_server on tab_pay_info.server_id = tab_server.server_num AND tab_pay_info.game_id = tab_server.game_id')->where($map)->order('tab_pay_info.id DESC')->page($p, $row)->select();
foreach($data as $k => $v) { foreach($data as $k => $v) {
if(empty($v['extend'])) { if(empty($v['extend'])) {
$data[$k]['extend'] = $v['order_id']; $data[$k]['extend'] = $v['order_id'];
} }
} }
$count = M('pay_info', 'tab_')->where($map)->count(); $count = M('pay_info', 'tab_')->join('tab_server on tab_pay_info.server_id = tab_server.server_num AND tab_pay_info.game_id = tab_server.game_id')->where($map)->count();
$page = set_pagination($count, $row); $page = set_pagination($count, $row);
if ($page) { if ($page) {
$this->assign('_page', $page); $this->assign('_page', $page);

Loading…
Cancel
Save