管理后台新开发功能修改

master
zhengyongxing 5 years ago
parent e2e685e8c3
commit 8b2d04f986

@ -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_')

@ -23,6 +23,7 @@ class TestWhiteListController extends ThinkController
$data = M('test_white_list','tab_')
->page($p, $row)
->where($map)
->order('create_ime DESC')
->select();
foreach ($data as $key => $Value) {

Loading…
Cancel
Save