|
...
|
...
|
@@ -9,6 +9,7 @@ use App\Http\Logic\Aside\Project\ProjectLogic; |
|
|
|
use App\Models\Ai\AiPrefix;
|
|
|
|
use App\Models\ASide\APublicModel;
|
|
|
|
use App\Models\Channel\Channel;
|
|
|
|
use App\Models\Com\KeywordVideoTask;
|
|
|
|
use App\Models\Domain\DomainInfo;
|
|
|
|
use App\Models\Manage\ManageHr;
|
|
|
|
use App\Models\Project\DeployOptimize;
|
|
...
|
...
|
@@ -391,4 +392,28 @@ class OptimizeController extends BaseController |
|
|
|
$optimizeModel->edit(['backlink'=>$this->param['backlink']],['project_id'=>$this->param['project_id']]);
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :开启视频模块
|
|
|
|
* @name :setAiVideo
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/5/30 10:30
|
|
|
|
*/
|
|
|
|
public function setAiVideo(){
|
|
|
|
$this->request->validate([
|
|
|
|
'project_id'=>'required',
|
|
|
|
],[
|
|
|
|
'project_id.required' => 'project_id不能为空',
|
|
|
|
]);
|
|
|
|
$keywordVideoModel = new KeywordVideoTask();
|
|
|
|
$info = $keywordVideoModel->read(['project_id'=>$this->param['project_id']]);
|
|
|
|
if($info === false){
|
|
|
|
$this->response('请先创建视频任务,才能开启',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
$keywordVideoModel->edit(['status'=>1],['project_id'=>$this->param['project_id']]);
|
|
|
|
$optimizeModel = new DeployOptimize();
|
|
|
|
$optimizeModel->edit(['ai_video'=>1],['project_id'=>$this->param['project_id']]);
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|