From a1a5d487c375f29b2b3bca4a13a5ab737797c63a Mon Sep 17 00:00:00 2001
From: elf <360197197@qq.com>
Date: Tue, 9 Apr 2024 23:17:00 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Admin/Common/function.php | 2 +-
.../Controller/AdminController.class.php | 11 -
.../Controller/SpendController.class.php | 173 ----
Application/Admin/View/Spend/listsMime.html | 881 ------------------
Application/Home/Common/function.php | 2 +-
.../Home/Controller/BaseController.class.php | 19 -
.../Controller/DownloadController.class.php | 226 +----
.../Home/Controller/QueryController.class.php | 217 -----
.../View/default/Public/promote_base.html | 10 -
.../Home/View/default/Query/rechargeMine.html | 472 ----------
10 files changed, 3 insertions(+), 2010 deletions(-)
delete mode 100644 Application/Admin/View/Spend/listsMime.html
delete mode 100644 Application/Home/View/default/Query/rechargeMine.html
diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php
index a9d078d..46d3bcd 100644
--- a/Application/Admin/Common/function.php
+++ b/Application/Admin/Common/function.php
@@ -1108,6 +1108,6 @@ function getMarketLevel()
}
function isOutPaySite() {
- return $_SERVER['HTTP_HOST'] == 'outermg.jianghuifa.cn';
+ return false;
}
diff --git a/Application/Admin/Controller/AdminController.class.php b/Application/Admin/Controller/AdminController.class.php
index ef868d7..2ef9df1 100644
--- a/Application/Admin/Controller/AdminController.class.php
+++ b/Application/Admin/Controller/AdminController.class.php
@@ -44,17 +44,6 @@ class AdminController extends Controller {
}
}
$rule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME);
- $outPayRules = [
- 'admin/spend/listsmime',
- 'admin/repair/repairedit',
- ];
- if (in_array($rule, $outPayRules) && !isOutPaySite()) {
- die('地址错误');
- }
- if (isOutPaySite() && !in_array($rule, $outPayRules)) {
- redirect(U("Admin/Spend/listsMime"));
- die();
- }
// 检测系统权限
if(!IS_ROOT){
$access = $this->accessControl();
diff --git a/Application/Admin/Controller/SpendController.class.php b/Application/Admin/Controller/SpendController.class.php
index 74cbcf3..76e07f4 100644
--- a/Application/Admin/Controller/SpendController.class.php
+++ b/Application/Admin/Controller/SpendController.class.php
@@ -194,179 +194,6 @@ class SpendController extends ThinkController
$this->display();
}
- public function listsMime()
- {
- $startDate = empty($_REQUEST['timestart']) ? date('Y-m-d', strtotime('-6 day', time())) : $_REQUEST['timestart'];
- $endDate = empty($_REQUEST['timeend']) ? date('Y-m-d') : $_REQUEST['timeend'];
- $payStatus = isset($_REQUEST['pay_real_status']) ? $_REQUEST['pay_real_status'] : 1;
-
- $startTime = strtotime($startDate);
- $endTime = strtotime($endDate) + 86399;
-
- if($payStatus > 0){
- $map['pay_time'] = array('BETWEEN', array($startTime, $endTime));
- }else{
- $map['spend_time'] = array('BETWEEN', array($startTime, $endTime));
- }
-
- $map['pay_real_status'] = $payStatus;
-
- unset($_REQUEST['timestart']);
- unset($_REQUEST['timeend']);
-
- if (isset($_REQUEST['is_check'])) {
- $map['is_check'] = (int)($_REQUEST['is_check']);
- }
-
- if (isset($_REQUEST['is_refund'])) {
- $map['is_refund'] = (int)($_REQUEST['is_refund']);
- }
-
- if (isset($_REQUEST['user_account'])) {
- $map['user_account'] = array('like', trim($_REQUEST['user_account']));
- unset($_REQUEST['user_account']);
- }
- if (isset($_REQUEST['spend_ip'])) {
- $map['spend_ip'] = array('like', trim($_REQUEST['spend_ip']) . '%');
- unset($_REQUEST['spend_ip']);
- }
- if (isset($_REQUEST['game_name'])) {
- if ($_REQUEST['game_name'] == '全部') {
- unset($_REQUEST['game_name']);
- } else {
- $map['game_id'] = ['in', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')];
- unset($_REQUEST['game_name']);
- }
- }
- if (isset($_REQUEST['game_type']) && $_REQUEST['game_type']) {
- $map['sdk_version'] = $_REQUEST['game_type'];
- }
- if (isset($_REQUEST['server_id'])) {
- $map['server_id'] = $_REQUEST['server_id'];
- unset($_REQUEST['server_id']);
- }
- if (isset($_REQUEST['pay_order_number'])) {
- $map['pay_order_number'] = array('like', trim($_REQUEST['pay_order_number']));
- unset($_REQUEST['pay_order_number']);
- }
- if (isset($_REQUEST['extend'])) {
- $map['extend'] = array('like', trim($_REQUEST['extend']));
- unset($_REQUEST['extend']);
- }
-
- $map['pay_way'] = ['in', '41'];
-
- if (isset($_REQUEST['pay_game_status'])) {
- $map['pay_game_status'] = $_REQUEST['pay_game_status'];
- unset($_REQUEST['pay_game_status']);
- }
-
- if ($_REQUEST['merchant_id']) {
- $map['merchant_id'] = $_REQUEST['merchant_id'];
- unset($_REQUEST['merchant_id']);
- }
-
- if (isset($_REQUEST['promote_id'])) {
- $promoteId = intval($_REQUEST['promote_id']);
- if ($promoteId == 0) {
- $map['promote_id'] = 0;
- } else {
- $promoteMap['chain'] = ['like', "%/$promoteId/%"];
- $promoteIds = M('Promote', 'tab_')->where($promoteMap)->getField('id', true);
- $promoteIds[] = $promoteId;
- $map['promote_id'] = ['in', $promoteIds];
- }
- }
-
- $isMarketAdmin = isMarketAdmin();
- $isMarketLeader = isMarketLeader();
- $marketAdminIds = getSearchAdminIds('market_admin_id');
-
- if (is_array($marketAdminIds)) {
- $map['market_admin_id'] = ['in', $marketAdminIds];
- }
- setPowerPromoteIds($map,'promote_id');
-
- if ($_REQUEST['data_order'] != '') {
- $data_order = reset(explode(',', $_REQUEST['data_order']));
- $data_order_type = end(explode(',', $_REQUEST['data_order']));
- $this->assign('userarpu_order', $data_order);
- $this->assign('userarpu_order_type', $data_order_type);
- $sort = $data_order == 3 ? 'desc' : 'asc';
- $order = $data_order_type . ' ' . $sort;
- } else {
- $order = ' pay_time desc ';
- }
- if (I('platform_type', 0) != 0) {
- $sy = I('platform_type', 0) == 1 ? '=' : '<>';
- $game_id = M("Game","tab_")->where('unique_code ' . $sy . ' ""')->getField("id",true);
- $map['game_id'] = ['in',$game_id];
- }
-
- // if (intval(($endTime + 1) - $startTime) / (24 * 3600) <= 31) {
- // $map1 = $map;
- // $map1['pay_status'] = 1;
- // } else {
- // $map = '1 = 2';
- // $map1 = $map;
- // }
- $this->checkListOrCountAuthRestMap($map,["extend", "pay_order_number", "user_account"]);
- D("Spend")->addSubsiteWhere($map);
- if ($payStatus > 0) {
- $map1 = $map;
- $map1['pay_status'] = 1;
- $total = null_to_0(M(self::model_name, "tab_")->where($map1)->sum('pay_amount'));
- }
- $total=$total?$total:0;
- $this->assign('total', $total);
-
- $this->meta_title = $this->m_title = '游戏充值';
- $this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Spend/lists', 'status' => 1])->find());
-
- $data = D(self::model_name)->lists($_GET["p"], $map, $order);
- // dd($data);
- if (!empty($data['data'])) {
- $adminIds = array_column($data['data'], 'market_admin_id');
- $adminUsernameList = getAdminUsernameList($adminIds);
- $adminDepartments = getAdminDepartmentList($adminIds);
- foreach ($data['data'] as $key=>&$value) {
- ($value['promote_account']=='官方渠道')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
- $value['market_admin_username'] = $adminUsernameList[$value['market_admin_id']] ?? '无';
- $value['admin_department'] = $adminDepartments[$value['market_admin_id']] ?? '无';
- $value['is_check_str'] = D(self::model_name)::IsCheckStr[$value['is_check']];
- $value['is_refund_str'] = D(self::model_name)::IsRefundStr[$value['is_refund']];
- //拆分游戏名称和设备类型
- $game_arr = explode("(", rtrim($value['game_name'], ")"));
- $value['game_name'] = $game_arr[0];
- $value['sdk_version_name'] = $game_arr[1];
- if(!$value['pay_time']) $value['pay_time'] = $value['spend_time'];
- }
- }
-
- $departments = M('department', 'sys_')->select();
-
- $this->assign('departments', $departments);
- $this->assign('isMarketLeader', $isMarketLeader);
- $this->assign('showMarketAdmin', session('user_auth')['show_market_admin']);
- $this->assign('showPromote', session('user_auth')['show_promote']);
- $this->assign('isMarketAdmin', $isMarketAdmin);
- $this->assign('marketAdmins', getMarketAdmins());
- $this->assign('startDate', $startDate);
- $this->assign('endDate', $endDate);
- $this->assign('payStatus', $payStatus);
- $this->assign('list_data', $data['data']);
- $this->assign('_page', $data['page']);
- $show_data_power = (is_administrator()|| session('user_auth')['show_data']);
- $this->assign('show_data_power', $show_data_power);
-
- if(!IS_ROOT){
- $this->OpAuthList= getModuleControllerAuth();
- }
-
- $this->assign('menubtn',$this->menuAuth());
- $this->display();
- }
-
protected function menuAuth()
{
$mentBtn = [
diff --git a/Application/Admin/View/Spend/listsMime.html b/Application/Admin/View/Spend/listsMime.html
deleted file mode 100644
index 16c0095..0000000
--- a/Application/Admin/View/Spend/listsMime.html
+++ /dev/null
@@ -1,881 +0,0 @@
- 说明:游戏充值全部订单:全部订单包含游戏SDK内所有支付的订单,包含SDK现金支付、平台币支付、绑币支付游戏充值
-
-
-
-
-
-
-
-
-
-
-
-
-
- 支付订单号
- CP订单号
-
-
- 充值时间
-
- 支付时间
- 玩家账号
- 游戏名称
- 设备类型
-
- 所属推广员
-
- 所属市场部
-
- 所属市场专员
-
- 所属商户
- 充值ip
- 区服ID
- 游戏区服
- 角色ID
- 角色名称
- 订单金额
- 折扣
-
-
- 实付金额
-
- 充值方式
- 订单状态
- 退款状态
- 游戏通知状态
- 是否参与结算
- 操作
- aOh! 暂时还没有内容!
-
-
-
-
-
-
-
- {:set_show_time($data['pay_time'])}
-
-
-
-
- {$data.game_name}
- {$data.sdk_version_name}
-
-
-
-
- {$data.admin_department}
-
- {$data.market_admin_username}
-
- {:getMerchantName($data['merchant_id'])}
- {$data.spend_ip}
- — —
- — —
- {$data.server_id}
- {$data.server_name}
- — —
- — —
- {$data.game_player_id}
- {$data.game_player_name}
- {$data.cost|default=0.00}
- {$data.discount_amount|default=0.00}
- {$data.pay_amount}
- {:get_pay_way($data['pay_way'])}
-
-
- {$data.is_refund_str}
-
-
- {$data.is_check_str}
-
-
-
-
-
-
-
-
-
- 汇总
-
- 当页充值:{:null_to_0(array_sum(array_column(array_status2value('pay_real_status','',$list_data),'pay_amount')))}
-
- 累计充值:{$total}(此处只汇总充值成功的订单)
-
-
-
玩家账号 | -游戏订单 | -支付方式 | -充值状态 | -订单金额 | - -实付金额 | -游戏名称 | -设备类型 | -区服ID | -区服 | -角色名 | -部门长 | -组长 | -推广员 | -下单时间 | -到账时间 | - -
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-
- 暂无数据 - |
- |||||||||||||||
{$vo.user_account} | -{$vo.pay_order_number} | -{:get_pay_way($vo['pay_way'])} | -{$vo.pay_status} | -{$vo.cost} | - -{$vo.pay_amount} | -{$vo.game_name} | -{$vo.sdk_version} | -{$vo.server_id} | -{$vo.server_name} | -{$vo.game_player_name} | -{$vo.p_p_pro_account}({$vo.p_p_pro_real_name}/{$vo.p_p_pro_group_remark}) | -{$vo.p_pro_account}({$vo.p_pro_real_name}/{$vo.p_pro_group_remark}) | -{$vo.pro_account}({$vo.pro_real_name}) | -{$vo.spend_time} | -{$vo.pay_time} | - - - - -
合计(此数据根据充值状态进行统计) | --- | --- | --- | -{$aggregation.cost} | - -{$aggregation.pay_amount} | --- | --- | --- | --- | --- | --- | --- | -