Browse Source

do not save bot task file when HeroUnion is enabled

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

5
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)) {
$done = $done && $this->saveBotTask($shareUrl); //如果没有对接HeroUnion则保存本地任务文件
if (empty(FSC::$app['config']['heroUnionEnable'])) {
$done = $done && $this->saveBotTask($shareUrl);
}
if (!empty($tagName)) { if (!empty($tagName)) {
$video_id = $this->getVideoId($shareUrl); $video_id = $this->getVideoId($shareUrl);

Loading…
Cancel
Save