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 @@ +