|
|
|
@ -45,15 +45,23 @@ class SuperSignController extends ThinkController
|
|
|
|
|
$map['tab_game_supersign.pay_status'] = 1;
|
|
|
|
|
|
|
|
|
|
$data = M('game_supersign','tab_')
|
|
|
|
|
->field("order_id,ticket,pay_time,tab_user.account,tab_game.game_name,tab_user.promote_account,pay_price")
|
|
|
|
|
->field("order_id,ticket,pay_time,tab_user.account,tab_game.game_name,tab_user.promote_account,pay_price,pay_way")
|
|
|
|
|
->join("left join tab_user on tab_game_supersign.user_id = tab_user.id")
|
|
|
|
|
->join("left join tab_game on tab_game_supersign.game_id = tab_game.id")
|
|
|
|
|
->page($p, $row)
|
|
|
|
|
->order("pay_time DESC")
|
|
|
|
|
->where($map)
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
|
|
foreach ($data as $key => $Value) {
|
|
|
|
|
$data[$key]['pay_time'] = date('Y-m-d H:i:s',$Value['pay_time']);
|
|
|
|
|
if ($Value['pay_way']==1) {
|
|
|
|
|
$data[$key]['pay_way'] = '支付宝';
|
|
|
|
|
} else if ($Value['pay_way']==2) {
|
|
|
|
|
$data[$key]['pay_way'] = '微信';
|
|
|
|
|
} else {
|
|
|
|
|
$data[$key]['pay_way'] = '未知';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$count = M('game_supersign','tab_')
|
|
|
|
|