|
@@ -166,7 +166,7 @@ class ProjectLogic extends BaseLogic |
|
@@ -166,7 +166,7 @@ class ProjectLogic extends BaseLogic |
|
166
|
}else{
|
166
|
}else{
|
|
167
|
$this->param = $this->handleLevelStr($this->param);//处理星级客户暂停优化默认参数
|
167
|
$this->param = $this->handleLevelStr($this->param);//处理星级客户暂停优化默认参数
|
|
168
|
$this->saveSeoPlan($this->param);//保存seo白帽类型,上线保存一条审核记录
|
168
|
$this->saveSeoPlan($this->param);//保存seo白帽类型,上线保存一条审核记录
|
|
169
|
- $this->checkAiBlog($this->param);//开启白帽验证参数
|
169
|
+ $this->checkAiBlog($this->param);//开启ai相关功能验证参数
|
|
170
|
DB::beginTransaction();
|
170
|
DB::beginTransaction();
|
|
171
|
try {
|
171
|
try {
|
|
172
|
//初始化项目
|
172
|
//初始化项目
|
|
@@ -175,7 +175,8 @@ class ProjectLogic extends BaseLogic |
|
@@ -175,7 +175,8 @@ class ProjectLogic extends BaseLogic |
|
175
|
$this->setServers($this->param['serve_id'],$this->param['id']);
|
175
|
$this->setServers($this->param['serve_id'],$this->param['id']);
|
|
176
|
//ai_blog
|
176
|
//ai_blog
|
|
177
|
$this->setAiBlog($this->param['id'],$this->param['main_lang_id'],$this->param['is_ai_blog'],
|
177
|
$this->setAiBlog($this->param['id'],$this->param['main_lang_id'],$this->param['is_ai_blog'],
|
|
178
|
- $this->param['company']??"", $this->param['deploy_optimize']['company_en_name'] ?? '',$this->param['deploy_optimize']['company_en_description'] ?? '');
|
178
|
+ $this->param['company']??"", $this->param['deploy_optimize']['company_en_name'] ?? '',
|
|
|
|
179
|
+ $this->param['deploy_optimize']['company_en_description'] ?? '',$this->param['is_ai_video']);
|
|
179
|
//保存项目信息
|
180
|
//保存项目信息
|
|
180
|
$this->saveProject($this->param);
|
181
|
$this->saveProject($this->param);
|
|
181
|
//保存建站部署信息
|
182
|
//保存建站部署信息
|
|
@@ -217,6 +218,7 @@ class ProjectLogic extends BaseLogic |
|
@@ -217,6 +218,7 @@ class ProjectLogic extends BaseLogic |
|
217
|
if (in_array('2', $param['level']) || in_array('3', $param['level'])) {
|
218
|
if (in_array('2', $param['level']) || in_array('3', $param['level'])) {
|
|
218
|
//优化设置默认关闭
|
219
|
//优化设置默认关闭
|
|
219
|
$param['is_ai_blog'] = 0;
|
220
|
$param['is_ai_blog'] = 0;
|
|
|
|
221
|
+ $param['is_ai_video'] = 0;
|
|
220
|
$param['deploy_optimize']['is_ai_blog_send'] = 0;
|
222
|
$param['deploy_optimize']['is_ai_blog_send'] = 0;
|
|
221
|
$param['deploy_optimize']['is_auto_keywords'] = 0;
|
223
|
$param['deploy_optimize']['is_auto_keywords'] = 0;
|
|
222
|
}
|
224
|
}
|
|
@@ -259,7 +261,7 @@ class ProjectLogic extends BaseLogic |
|
@@ -259,7 +261,7 @@ class ProjectLogic extends BaseLogic |
|
259
|
}
|
261
|
}
|
|
260
|
|
262
|
|
|
261
|
/**
|
263
|
/**
|
|
262
|
- * @remark :开启白帽验证参数
|
264
|
+ * @remark :开启ai博客及视频
|
|
263
|
* @name :checkAiBlog
|
265
|
* @name :checkAiBlog
|
|
264
|
* @author :lyh
|
266
|
* @author :lyh
|
|
265
|
* @method :post
|
267
|
* @method :post
|
|
@@ -287,11 +289,11 @@ class ProjectLogic extends BaseLogic |
|
@@ -287,11 +289,11 @@ class ProjectLogic extends BaseLogic |
|
287
|
* @method :post
|
289
|
* @method :post
|
|
288
|
* @time :2025/2/13 16:02
|
290
|
* @time :2025/2/13 16:02
|
|
289
|
*/
|
291
|
*/
|
|
290
|
- public function setAiBlog($project_id,$main_lang_id,$is_ai_blog,$company,$company_en_name,$company_en_description){
|
|
|
|
291
|
- if(empty($main_lang_id) || empty($is_ai_blog)){
|
292
|
+ public function setAiBlog($project_id,$main_lang_id,$is_ai_blog,$company,$company_en_name,$company_en_description,$is_ai_video = 0){
|
|
|
|
293
|
+ if(empty($main_lang_id) || (empty($is_ai_blog) && empty($is_ai_video))){
|
|
292
|
return true;
|
294
|
return true;
|
|
293
|
}
|
295
|
}
|
|
294
|
- $projectInfo = $this->model->read(['id'=>$project_id],['title','is_ai_blog','main_lang_id','company']);
|
296
|
+ $projectInfo = $this->model->read(['id'=>$project_id],['title','main_lang_id','company']);
|
|
295
|
$projectOptimize = DeployOptimize::where('project_id', $project_id)->first();
|
297
|
$projectOptimize = DeployOptimize::where('project_id', $project_id)->first();
|
|
296
|
//获取项目主语种
|
298
|
//获取项目主语种
|
|
297
|
$languageModel = new WebLanguage();
|
299
|
$languageModel = new WebLanguage();
|