From 48b5e8818b47c8e8ce34133dc86d36ae6f06993d Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Tue, 28 Dec 2021 10:18:56 +0800 Subject: [PATCH] =?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/Base/Service/GameRebateService.class.php | 6 +++++- Application/Base/Tool/GameResource.class.php | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Application/Base/Service/GameRebateService.class.php b/Application/Base/Service/GameRebateService.class.php index 0e2b8e142..52c2c9344 100644 --- a/Application/Base/Service/GameRebateService.class.php +++ b/Application/Base/Service/GameRebateService.class.php @@ -2,6 +2,7 @@ namespace Base\Service; use Base\Tool\GameResource\SbcqClient; +use Base\Tool\GameResource\SlzqClient; use Base\Tool\GameResource\XlqyClient; use Base\Tool\GameResource\XyyXmjsClient; use Base\Tool\GameResource\ZxjClient; @@ -50,7 +51,7 @@ class GameRebateService 'J' => 'propsApplication', ]; - public $rebateBaseGameIds = [70, 73, 75, 79]; + public $rebateBaseGameIds = [70, 73, 75, 79, 81]; public function isGiftItemSend($order, $item) { @@ -127,6 +128,9 @@ class GameRebateService case 79: $client = new ZxjClient(); break; + case 81: + $client = new SlzqClient(); + break; case 9: $client = new XlqyClient(); break; diff --git a/Application/Base/Tool/GameResource.class.php b/Application/Base/Tool/GameResource.class.php index 7c372120f..eb5ed12ac 100644 --- a/Application/Base/Tool/GameResource.class.php +++ b/Application/Base/Tool/GameResource.class.php @@ -8,6 +8,7 @@ use GuzzleHttp\Exception\RequestException; use Base\Tool\GameResource\YzchzbClient; use Base\Tool\GameResource\LsxxClient; use Base\Tool\GameResource\LeyouClient; +use Base\Tool\GameResource\SlzqClient; use Base\Tool\GameResource\XlqyClient; use Base\Tool\GameResource\XyyClient; @@ -44,6 +45,8 @@ class GameResource 294 => XyyClient::class, // 逍遥游之仙魔之战(苹果版) 299 => ZxjClient::class, // 诛神记(安卓版) 300 => ZxjClient::class, // 诛神记(苹果版) + 303 => SlzqClient::class, // 神灵之契(安卓版) + 304 => SlzqClient::class, // 神灵之契(苹果版) ]; public function __construct($game)