From b8de66255613560c70a65bc125b0e1c64fd5cc2d Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Wed, 2 Jun 2021 15:03:17 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../View/PaymentMerchant/ruleAddForm.html | 6 +--
.../View/PaymentMerchant/ruleEditForm.html | 6 +--
.../Controller/PackageController.class.php | 3 ++
.../View/default/Package/open_in_safari.html | 38 +++++++++++++++++++
4 files changed, 47 insertions(+), 6 deletions(-)
create mode 100644 Application/Home/View/default/Package/open_in_safari.html
diff --git a/Application/Admin/View/PaymentMerchant/ruleAddForm.html b/Application/Admin/View/PaymentMerchant/ruleAddForm.html
index 410c50af0..a66ce8fc8 100644
--- a/Application/Admin/View/PaymentMerchant/ruleAddForm.html
+++ b/Application/Admin/View/PaymentMerchant/ruleAddForm.html
@@ -153,7 +153,7 @@
@@ -164,7 +164,7 @@
@@ -175,7 +175,7 @@
diff --git a/Application/Admin/View/PaymentMerchant/ruleEditForm.html b/Application/Admin/View/PaymentMerchant/ruleEditForm.html
index 6d1c81c66..f60b05d97 100644
--- a/Application/Admin/View/PaymentMerchant/ruleEditForm.html
+++ b/Application/Admin/View/PaymentMerchant/ruleEditForm.html
@@ -153,7 +153,7 @@
@@ -164,7 +164,7 @@
@@ -175,7 +175,7 @@
diff --git a/Application/Home/Controller/PackageController.class.php b/Application/Home/Controller/PackageController.class.php
index f24766b9a..7208043cf 100644
--- a/Application/Home/Controller/PackageController.class.php
+++ b/Application/Home/Controller/PackageController.class.php
@@ -114,6 +114,9 @@ class PackageController extends Controller
$downloadDomain = $applyService->getDownloadDomain();
if ($game['sdk_version'] == 2) {
+ if (!Request::getMobileDetect()->is('Safari')) {
+ return $this->display('open_in_safari');
+ }
$packageDownloadLogService = new PackageDownloadLogService();
$packageDownloadLogService->add([
'user_id' => 0,
diff --git a/Application/Home/View/default/Package/open_in_safari.html b/Application/Home/View/default/Package/open_in_safari.html
new file mode 100644
index 000000000..6abd2ff4a
--- /dev/null
+++ b/Application/Home/View/default/Package/open_in_safari.html
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {$game['relation_game_name']}
+
+
+
+
+
请选择在“Safari”中打开
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From b65a62b6ab8606a5151275c6d5cc2bd1abbb0d6b Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Wed, 2 Jun 2021 15:06:25 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Home/View/default/Package/open_in_safari.html | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/Application/Home/View/default/Package/open_in_safari.html b/Application/Home/View/default/Package/open_in_safari.html
index 6abd2ff4a..60cc99b2a 100644
--- a/Application/Home/View/default/Package/open_in_safari.html
+++ b/Application/Home/View/default/Package/open_in_safari.html
@@ -1,9 +1,8 @@
-
-
-
+
+
@@ -18,9 +17,9 @@
- {$game['relation_game_name']}
+ 请在Safari浏览器中打开
-
+
请选择在“Safari”中打开
From 53bf6bca07151ef6db1317142a372b7f53282e9d Mon Sep 17 00:00:00 2001
From: ELF <360197197@qq.com>
Date: Wed, 2 Jun 2021 15:17:33 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Admin/View/PaymentMerchant/ruleAddForm.html | 6 +++---
Application/Admin/View/PaymentMerchant/ruleEditForm.html | 6 +++---
Application/Home/Controller/PackageController.class.php | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Application/Admin/View/PaymentMerchant/ruleAddForm.html b/Application/Admin/View/PaymentMerchant/ruleAddForm.html
index a66ce8fc8..6db6e10b9 100644
--- a/Application/Admin/View/PaymentMerchant/ruleAddForm.html
+++ b/Application/Admin/View/PaymentMerchant/ruleAddForm.html
@@ -150,7 +150,7 @@
*支付宝支付配置: |
- |