|
@@ -9,6 +9,7 @@ use App\Http\Logic\Aside\Project\ProjectLogic; |
|
@@ -9,6 +9,7 @@ use App\Http\Logic\Aside\Project\ProjectLogic; |
|
9
|
use App\Models\Ai\AiPrefix;
|
9
|
use App\Models\Ai\AiPrefix;
|
|
10
|
use App\Models\ASide\APublicModel;
|
10
|
use App\Models\ASide\APublicModel;
|
|
11
|
use App\Models\Channel\Channel;
|
11
|
use App\Models\Channel\Channel;
|
|
|
|
12
|
+use App\Models\Com\KeywordVideoTask;
|
|
12
|
use App\Models\Domain\DomainInfo;
|
13
|
use App\Models\Domain\DomainInfo;
|
|
13
|
use App\Models\Manage\ManageHr;
|
14
|
use App\Models\Manage\ManageHr;
|
|
14
|
use App\Models\Project\DeployOptimize;
|
15
|
use App\Models\Project\DeployOptimize;
|
|
@@ -391,4 +392,28 @@ class OptimizeController extends BaseController |
|
@@ -391,4 +392,28 @@ class OptimizeController extends BaseController |
|
391
|
$optimizeModel->edit(['backlink'=>$this->param['backlink']],['project_id'=>$this->param['project_id']]);
|
392
|
$optimizeModel->edit(['backlink'=>$this->param['backlink']],['project_id'=>$this->param['project_id']]);
|
|
392
|
$this->response('success');
|
393
|
$this->response('success');
|
|
393
|
}
|
394
|
}
|
|
|
|
395
|
+
|
|
|
|
396
|
+ /**
|
|
|
|
397
|
+ * @remark :开启视频模块
|
|
|
|
398
|
+ * @name :setAiVideo
|
|
|
|
399
|
+ * @author :lyh
|
|
|
|
400
|
+ * @method :post
|
|
|
|
401
|
+ * @time :2024/5/30 10:30
|
|
|
|
402
|
+ */
|
|
|
|
403
|
+ public function setAiVideo(){
|
|
|
|
404
|
+ $this->request->validate([
|
|
|
|
405
|
+ 'project_id'=>'required',
|
|
|
|
406
|
+ ],[
|
|
|
|
407
|
+ 'project_id.required' => 'project_id不能为空',
|
|
|
|
408
|
+ ]);
|
|
|
|
409
|
+ $keywordVideoModel = new KeywordVideoTask();
|
|
|
|
410
|
+ $info = $keywordVideoModel->read(['project_id'=>$this->param['project_id']]);
|
|
|
|
411
|
+ if($info === false){
|
|
|
|
412
|
+ $this->response('请先创建视频任务,才能开启',Code::SYSTEM_ERROR);
|
|
|
|
413
|
+ }
|
|
|
|
414
|
+ $keywordVideoModel->edit(['status'=>1],['project_id'=>$this->param['project_id']]);
|
|
|
|
415
|
+ $optimizeModel = new DeployOptimize();
|
|
|
|
416
|
+ $optimizeModel->edit(['ai_video'=>1],['project_id'=>$this->param['project_id']]);
|
|
|
|
417
|
+ $this->response('success');
|
|
|
|
418
|
+ }
|
|
394
|
} |
419
|
} |