From 4abcad91069067ba4634cbc977872fdfed701216 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 1 Jun 2021 15:22:03 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=9C=89=E5=AE=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/PackageController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Home/Controller/PackageController.class.php b/Application/Home/Controller/PackageController.class.php index 34e1cc841..0aed74d24 100644 --- a/Application/Home/Controller/PackageController.class.php +++ b/Application/Home/Controller/PackageController.class.php @@ -91,7 +91,7 @@ class PackageController extends Controller $map = []; $map['status'] = 1; $map['enable_status'] = 1; - $map['game_id'] = $game['game_id']; + $map['game_id'] = $game['id']; $map['promote_id'] = $promoteId; $apply = M('apply','tab_')->where($map)->find(); if (!$apply) { From fb12b1345e09f46f98d9803ede1a3181bea47ec5 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 1 Jun 2021 15:31:20 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9C=89=E5=AE=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/PackageController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Home/Controller/PackageController.class.php b/Application/Home/Controller/PackageController.class.php index 0aed74d24..f24766b9a 100644 --- a/Application/Home/Controller/PackageController.class.php +++ b/Application/Home/Controller/PackageController.class.php @@ -98,7 +98,7 @@ class PackageController extends Controller $this->redirect("package/downloadError", ['message' => '该链接已经停止使用']); } - $packageUrl = $sdkVersion == 1 ? $apply['pack_url'] : $apply['plist_url']; + $packageUrl = $game['sdk_version'] == 1 ? $apply['pack_url'] : $apply['plist_url']; $url = $applyService->getLandingPageUrl($apply, $code); M('game','tab_')->where(['id' => $game['id']])->setInc('dow_num'); @@ -113,7 +113,7 @@ class PackageController extends Controller M('user_action_log', 'tab_')->data($log)->add(); $downloadDomain = $applyService->getDownloadDomain(); - if ($sdkVersion == 2) { + if ($game['sdk_version'] == 2) { $packageDownloadLogService = new PackageDownloadLogService(); $packageDownloadLogService->add([ 'user_id' => 0, From 9f37c6db3cb0d8bfb35b6eb4ba5d3ae9b6ed535e Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 1 Jun 2021 16:25:00 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=9C=89=E5=AE=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Service/ApplyService.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Base/Service/ApplyService.class.php b/Application/Base/Service/ApplyService.class.php index aab503d2b..851dcec70 100644 --- a/Application/Base/Service/ApplyService.class.php +++ b/Application/Base/Service/ApplyService.class.php @@ -175,12 +175,12 @@ class ApplyService { 'message' => '参数异常', ]; } - if ($data['type'] != $type) { + /* if ($data['type'] != $type) { return [ 'status' => false, 'message' => '参数异常', ]; - } + } */ if ($data['expires_in'] > 0 && time() > (strtotime($data['created_at']) + $data['expires_in'])) { return [ 'status' => false,