|
|
@ -74,6 +74,9 @@ class PlayersController extends BaseController {
|
|
|
|
$rs = M('pay_info','tab_')->where($map)->order('tab_pay_info.create_time desc')
|
|
|
|
$rs = M('pay_info','tab_')->where($map)->order('tab_pay_info.create_time desc')
|
|
|
|
->page($page, $row)->select();
|
|
|
|
->page($page, $row)->select();
|
|
|
|
foreach($rs as $key => $v) {
|
|
|
|
foreach($rs as $key => $v) {
|
|
|
|
|
|
|
|
if(empty($v['extend'])) {
|
|
|
|
|
|
|
|
$v['extend'] = $v['order_id'];
|
|
|
|
|
|
|
|
}
|
|
|
|
$rs[$key]['extend'] = encryption($v['extend']);
|
|
|
|
$rs[$key]['extend'] = encryption($v['extend']);
|
|
|
|
$rs[$key]['create_time'] = date('Y-m-d H:i:s',$v['create_time']);
|
|
|
|
$rs[$key]['create_time'] = date('Y-m-d H:i:s',$v['create_time']);
|
|
|
|
$promoteInfo = M('promote','tab_')->field("account")->where(['id' => intval($v['promote_id'])])->find();
|
|
|
|
$promoteInfo = M('promote','tab_')->field("account")->where(['id' => intval($v['promote_id'])])->find();
|
|
|
@ -82,6 +85,7 @@ class PlayersController extends BaseController {
|
|
|
|
$serverInfo = M('server','tab_')->field('server_name')->where(['server_num'=>$serverId1,'game_id'=>$gameId])->find();
|
|
|
|
$serverInfo = M('server','tab_')->field('server_name')->where(['server_num'=>$serverId1,'game_id'=>$gameId])->find();
|
|
|
|
$rs[$key]['server_name'] = $serverInfo['server_name'];
|
|
|
|
$rs[$key]['server_name'] = $serverInfo['server_name'];
|
|
|
|
$rs[$key]['promote_id']= $promoteInfo['account'];
|
|
|
|
$rs[$key]['promote_id']= $promoteInfo['account'];
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$count = M('pay_info', 'tab_')
|
|
|
|
$count = M('pay_info', 'tab_')
|
|
|
|
->field('tab_pay_info.id')
|
|
|
|
->field('tab_pay_info.id')
|
|
|
|