From f9bdca3a9feddf4f7beeaa497428b336c4b8e6f7 Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 10 May 2024 00:14:57 +0800 Subject: [PATCH] do not save bot task file when HeroUnion is enabled --- themes/tajian/controller/FrontapiController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/tajian/controller/FrontapiController.php b/themes/tajian/controller/FrontapiController.php index 7e32fae..d2fc2e6 100644 --- a/themes/tajian/controller/FrontapiController.php +++ b/themes/tajian/controller/FrontapiController.php @@ -155,7 +155,10 @@ Class FrontApiController extends SiteController { $shareUrl = $this->getShareUrlFromContent($content); if (!empty($shareUrl)) { - $done = $done && $this->saveBotTask($shareUrl); + //如果没有对接HeroUnion则保存本地任务文件 + if (empty(FSC::$app['config']['heroUnionEnable'])) { + $done = $done && $this->saveBotTask($shareUrl); + } if (!empty($tagName)) { $video_id = $this->getVideoId($shareUrl);