Browse Source

do not save bot task file when HeroUnion is enabled

master
filesite 7 months ago
parent
commit
f9bdca3a9f
  1. 3
      themes/tajian/controller/FrontapiController.php

3
themes/tajian/controller/FrontapiController.php

@ -155,7 +155,10 @@ Class FrontApiController extends SiteController {
$shareUrl = $this->getShareUrlFromContent($content); $shareUrl = $this->getShareUrlFromContent($content);
if (!empty($shareUrl)) { if (!empty($shareUrl)) {
//如果没有对接HeroUnion则保存本地任务文件
if (empty(FSC::$app['config']['heroUnionEnable'])) {
$done = $done && $this->saveBotTask($shareUrl); $done = $done && $this->saveBotTask($shareUrl);
}
if (!empty($tagName)) { if (!empty($tagName)) {
$video_id = $this->getVideoId($shareUrl); $video_id = $this->getVideoId($shareUrl);

Loading…
Cancel
Save