|
|
|
@ -10,7 +10,9 @@ use Org\WeixinSDK\Weixin;
|
|
|
|
|
class PayChannelController extends ThinkController
|
|
|
|
|
{
|
|
|
|
|
public function index($p = 0) {
|
|
|
|
|
|
|
|
|
|
if(!array_key_exists("timestart",$_REQUEST)){
|
|
|
|
|
$this->redirect(ACTION_NAME, array('timestart' => date('Y-m-d',strtotime('-30 day')),"timeend"=>date('Y-m-d')));
|
|
|
|
|
}
|
|
|
|
|
$page = intval($p);
|
|
|
|
|
$page = $page ? $page : 1; //默认显示第一页数据
|
|
|
|
|
$arraypage = $page;
|
|
|
|
@ -126,7 +128,7 @@ class PayChannelController extends ThinkController
|
|
|
|
|
$data[$key]['test_coin'] = $handleTestData[$value['game_id']]?$handleTestData[$value['game_id']]:0;
|
|
|
|
|
$data[$key]['test_platform_coin'] = $handleTestCoinData[$value['game_id']]?$handleTestCoinData[$value['game_id']]:0;
|
|
|
|
|
$data[$key]['game_name'] =clearGameNameType($data[$key]['game_name']);
|
|
|
|
|
$data[$key]['sdk_version'] =$data[$key]['sdk_version'] == 1 ? "安卓" : "苹果";
|
|
|
|
|
$data[$key]['sdk_version'] =getGameTypeName($data[$key]['sdk_version']);
|
|
|
|
|
}
|
|
|
|
|
$superMap = $map;
|
|
|
|
|
// unset($superMap['promote_id']);
|
|
|
|
@ -659,7 +661,7 @@ class PayChannelController extends ThinkController
|
|
|
|
|
|
|
|
|
|
if ($model == 'spend') {
|
|
|
|
|
$data[$key]['game_name'] =clearGameNameType($data[$key]['game_name']);
|
|
|
|
|
$data[$key]['sdk_version'] =$data[$key]['sdk_version'] == 1 ? "安卓" : "苹果";
|
|
|
|
|
$data[$key]['sdk_version'] =getGameTypeName($data[$key]['sdk_version']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -872,7 +874,7 @@ class PayChannelController extends ThinkController
|
|
|
|
|
foreach ($xlsData as $k => $v) {
|
|
|
|
|
if ($model == 'spend') {
|
|
|
|
|
$v['game_name'] =clearGameNameType($v['game_name']);
|
|
|
|
|
$v['sdk_version'] =$v['sdk_version'] == 1 ? "安卓" : "苹果";
|
|
|
|
|
$v['sdk_version'] =getGameTypeName($v[$key]['sdk_version']);
|
|
|
|
|
}
|
|
|
|
|
$v['pay_time'] = date('Y-m-d H:i:s',$v['pay_time']);
|
|
|
|
|
$v['pay_way'] = get_pay_way($v['pay_way']);
|
|
|
|
@ -1037,7 +1039,7 @@ class PayChannelController extends ThinkController
|
|
|
|
|
$data[$key]['pay_type'] = get_pay_way($value['pay_type']);
|
|
|
|
|
|
|
|
|
|
$data[$key]['game_name'] =clearGameNameType($data[$key]['game_name']);
|
|
|
|
|
$data[$key]['sdk_version'] =$data[$key]['sdk_version'] == 1 ? "安卓" : "苹果";
|
|
|
|
|
$data[$key]['sdk_version'] =getGameTypeName($data[$key]['sdk_version']);
|
|
|
|
|
|
|
|
|
|
if ($value['pay_way']==1 || $value['pay_way']==9 ) {
|
|
|
|
|
$data[$key]['pay_way'] = '支付宝';
|
|
|
|
@ -1369,7 +1371,7 @@ class PayChannelController extends ThinkController
|
|
|
|
|
$value['pay_order_number'] = "'".$value['pay_order_number'];
|
|
|
|
|
$value['order_number'] = "'".$value['order_number'];
|
|
|
|
|
$value['game_name'] =clearGameNameType($value['game_name']);
|
|
|
|
|
$value['sdk_version'] =$value['sdk_version'] == 1 ? "安卓" : "苹果";
|
|
|
|
|
$value['sdk_version'] =getGameTypeName($value['sdk_version']);
|
|
|
|
|
|
|
|
|
|
if (!$value['order_number']) {
|
|
|
|
|
$data[$key]['order_number'] = '无';
|
|
|
|
|