From 2e9176a9d5df59b5b7ba2c0b6febfaae04230d65 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Mon, 27 Feb 2023 21:48:34 +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/Event/SourceEvent.class.php | 2 ++ Application/Base/Tool/PlatformLog.class.php | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Application/Base/Tool/PlatformLog.class.php diff --git a/Application/Admin/Event/SourceEvent.class.php b/Application/Admin/Event/SourceEvent.class.php index b3d01a14b..77981f292 100644 --- a/Application/Admin/Event/SourceEvent.class.php +++ b/Application/Admin/Event/SourceEvent.class.php @@ -12,6 +12,7 @@ use Think\Controller; use Base\Service\GameSourceService; use Base\Tool\PlistParser; use Base\Tool\ApkParser; +use Org\SumaPay\PlatformLog; /** * 后台首页控制器 @@ -53,6 +54,7 @@ class SourceEvent extends Controller $gameSourceService = new GameSourceService(); $result = $gameSourceService->sourcePack($data, $game); if (!$result['status']) { + PlatformLog::write('添加失败, 打包失败,' . $result['message'], 'source_pack'); $this->error('添加失败, 打包失败,' . $result['message'] , U('GameSource/lists', ['type' => $data['type']])); } $data['plist_url'] = $result['data']['plistUrl']; diff --git a/Application/Base/Tool/PlatformLog.class.php b/Application/Base/Tool/PlatformLog.class.php new file mode 100644 index 000000000..b061654d8 --- /dev/null +++ b/Application/Base/Tool/PlatformLog.class.php @@ -0,0 +1,12 @@ +