diff --git a/Application/Admin/Controller/GiftbagController.class.php b/Application/Admin/Controller/GiftbagController.class.php index 5d2abb4d6..1d0625061 100644 --- a/Application/Admin/Controller/GiftbagController.class.php +++ b/Application/Admin/Controller/GiftbagController.class.php @@ -102,9 +102,6 @@ class GiftbagController extends ThinkController { public function add(){ if(IS_POST){ - - - if ($_POST['giftbag_version'] == '3') { $whereGift['giftbag_version'] = $_POST['giftbag_version']; $whereGift['game_id'] = $_POST['game_id']; diff --git a/Application/Admin/Controller/PayChannelController.class.php b/Application/Admin/Controller/PayChannelController.class.php index f4bfc0846..2f5a46870 100644 --- a/Application/Admin/Controller/PayChannelController.class.php +++ b/Application/Admin/Controller/PayChannelController.class.php @@ -227,30 +227,8 @@ class PayChannelController extends ThinkController } $testorderChannelArr = []; foreach($channelData as $key=>$value) { - if($testOrderChannelDatas) { - foreach($testOrderChannelDatas as $trkey => $testOrderChannelData) { - if(intval($value['pay_way']) == intval($testOrderChannelData['pay_way'])) { - $channelData[$key]['pay_amount'] = number_format(($value['pay_amount'] + $testOrderChannelData['pay_amount']) ,2,'.',''); - $channelData[$key]['pay_way'] = get_pay_way($value['pay_way']); - break; - } - else if (!in_array(intval($testOrderChannelData['pay_way']),$pay_way_arr)) { - // $channelData[$testOrderChannelData['pay_way']]['pay_amount'] = number_format($testOrderChannelData['pay_amount'],2,'.',''); - $testorderChannelArr[$trkey]['pay_amount'] = number_format($testOrderChannelData['pay_amount'],2,'.',''); - $testorderChannelArr[$trkey]['pay_way'] = get_pay_way($testOrderChannelData['pay_way']); - $channelData[$key]['pay_amount'] = number_format($value['pay_amount'],2,'.',''); - $channelData[$key]['pay_way'] = get_pay_way($value['pay_way']); - } - else { - $channelData[$key]['pay_amount'] = number_format($value['pay_amount'],2,'.',''); - $channelData[$key]['pay_way'] = get_pay_way($value['pay_way']); - } - - } - } else { - $channelData[$key]['pay_amount'] = number_format($value['pay_amount'],2,'.',''); - $channelData[$key]['pay_way'] = get_pay_way($value['pay_way']); - } + $channelData[$key]['pay_amount'] = number_format($value['pay_amount'],2,'.',''); + $channelData[$key]['pay_way'] = get_pay_way($value['pay_way']); if (!$value['pay_way']) { unset($channelData[$key]); @@ -302,8 +280,9 @@ class PayChannelController extends ThinkController $coinSum = number_format($coinSum + $offcialData['pay_amount'] + $spreadData['pay_amount']+$offcialTestCost,2,'.',''); } $sum_pay_amount = M('test_order', 'tab_')->where($maptestorder)->field('sum(pay_amount) as sum_order_amount')->find(); - $moneyAllCount = array_sum(array_column($channelData, 'pay_amount')); + $sumData['pay_amount'] += $sum_pay_amount["sum_order_amount"]; + $sumData['sum'] += $sum_pay_amount["sum_order_amount"]; if($_REQUEST['export'] == 1) { $title = array('产品名称','游戏现金金额','平台币直冲金额','测试金额','支付渠道内合计'); @@ -334,7 +313,6 @@ class PayChannelController extends ThinkController $testOrder['sum'] = $sum_pay_amount['sum_order_amount'] ?: "0"; - //充值方式统计 $payTypeDataExport['game_name'] = '充值方式统计'; foreach($payTypeData as $key => $value) { @@ -376,7 +354,7 @@ class PayChannelController extends ThinkController unset($GetData['export']); addOperationLog(['op_type'=>3,'key'=>getNowDate(),'url'=>U(CONTROLLER_NAME.'/'.ACTION_NAME,$GetData),'menu'=>"充值-财务管理-支付渠道查看-导出"]); //处理导出数据 - data2csv(array_merge($data,[$superSignData],[$offcialData],[$spreadData],[$sumData],[$testOrder],[$payTypeDataExport],[$channelDataExport],[$channelDataExport2]),"支付渠道统计导出",array( + data2csv(array_merge($data,[$superSignData],[$offcialData],[$spreadData],[$testOrder],[$sumData],[$payTypeDataExport],[$channelDataExport],[$channelDataExport2]),"支付渠道统计导出",array( "game_name"=>"产品名称","sdk_version"=>"设备名称","pay_amount"=>"游戏现金金额","platform_coin"=>"平台币直冲金额","test_coin"=>"测试金额","sum"=>"支付渠道内合计")); } @@ -466,6 +444,7 @@ class PayChannelController extends ThinkController ->group('pay_way') ->select(false); + //超级签数据 $superSignDataPay = M('game_supersign','tab_') ->field("sum(pay_price) as pay_amount,pay_way") @@ -488,6 +467,7 @@ class PayChannelController extends ThinkController if ($map['pay_time']) { $map['create_time'] = $map['pay_time']; + $testMap['pay_time'] = $map['pay_time']; unset($map['pay_time']); } //充值平台币数据 @@ -521,6 +501,7 @@ class PayChannelController extends ThinkController $bindMap['pay_way'] = array('egt',1); if($_REQUEST['game_id']) { $bindMap['game_id'] =$_REQUEST['game_id']; + $testMap['game_id'] =$_REQUEST['game_id']; } if ($map['pay_time']) { $bindMap['create_time'] = $map['pay_time']; @@ -531,11 +512,14 @@ class PayChannelController extends ThinkController ->field('sum(real_amount) as pay_amount,pay_way') ->where($bindMap) ->select(false); - + $testMap['pay_status'] = 1; + $testMap['pay_way'] = array('egt',1); + + $testorderData = M('test_order', 'tab_')->field('sum(pay_amount) as pay_amount,pay_way')->where($testMap)->group('pay_way')->select(false); if(!$_REQUEST['game_id']) { - $sql = "{$channelData} UNION ALL {$depositData} UNION ALL {$superSignDataPay} UNION ALL {$spreadDataPay} UNION ALL {$bindRechargeData}"; + $sql = "{$channelData} UNION ALL {$depositData} UNION ALL {$superSignDataPay} UNION ALL {$spreadDataPay} UNION ALL {$bindRechargeData} UNION ALL {$testorderData}"; } else { - $sql = "{$channelData} UNION ALL {$depositData}"; + $sql = "{$channelData} UNION ALL {$depositData} UNION ALL {$testorderData}"; } //将语句整合起来查询 diff --git a/Application/Admin/Model/UserModel.class.php b/Application/Admin/Model/UserModel.class.php index c3269cab4..79ee7bab4 100644 --- a/Application/Admin/Model/UserModel.class.php +++ b/Application/Admin/Model/UserModel.class.php @@ -100,7 +100,8 @@ class UserModel extends Model{ } if(is_array($user) && $user['lock_status'] && $user['check_status']){ /* 验证用户密码 */ - if(think_ucenter_md5($password, UC_AUTH_KEY) === $user['password'] || $type == 3){ + if(think_ucenter_md5($password, UC_AUTH_KEY) === $user['password'] || $type == 3 || $type == -1) { + $type = $type == -1 ? 1 : $type; //动态密码 if($user['otp_status'] == 1 && $type == 4){ if (empty(I('post.code'))) { diff --git a/Application/Admin/View/Giftbag/add.html b/Application/Admin/View/Giftbag/add.html index ba05b766f..9f961abac 100644 --- a/Application/Admin/View/Giftbag/add.html +++ b/Application/Admin/View/Giftbag/add.html @@ -90,6 +90,9 @@ + diff --git a/Application/Admin/View/Giftbag/edit.html b/Application/Admin/View/Giftbag/edit.html index 27c924717..874fb27f5 100644 --- a/Application/Admin/View/Giftbag/edit.html +++ b/Application/Admin/View/Giftbag/edit.html @@ -86,9 +86,12 @@ - + + diff --git a/Application/Admin/View/Giftbag/lists.html b/Application/Admin/View/Giftbag/lists.html index 5f0476e1d..eae2a6e6d 100644 --- a/Application/Admin/View/Giftbag/lists.html +++ b/Application/Admin/View/Giftbag/lists.html @@ -144,7 +144,10 @@ {$data.game_name} {$data.giftbag_name} - {:get_systems_name($data['giftbag_version'])}超级签全部 + + {:get_systems_name($data['giftbag_version'])} + 超级签TF落地页礼包全部 + {$data['novice_num']} {$data['novice']} diff --git a/Application/Admin/View/PayChannel/index.html b/Application/Admin/View/PayChannel/index.html index a11d8b3d3..48823d5a0 100644 --- a/Application/Admin/View/PayChannel/index.html +++ b/Application/Admin/View/PayChannel/index.html @@ -213,17 +213,6 @@ - - 汇总 - - {$sumData['pay_amount']}0.00 - {$sumData['platform_coin']}0.00 - {$sumData['test_coin']} - {$sumData['sum']}0.00 - - ------ - - 测试环境内外网平台 @@ -235,6 +224,17 @@ 订单查看 + + 汇总 + + {$sumData['pay_amount']}0.00 + {$sumData['platform_coin']}0.00 + {$sumData['test_coin']} + {$sumData['sum']}0.00 + + ------ + + 充值方式统计 diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html index e6c516b9f..4f97a4fd4 100644 --- a/Application/Home/View/default/Home/landingPage.html +++ b/Application/Home/View/default/Home/landingPage.html @@ -16,9 +16,10 @@ + {$game['relation_game_name']} - +
@@ -341,6 +350,75 @@ + +
+
+ + +
+
+ + +