|
...
|
...
|
@@ -48,6 +48,7 @@ use App\Models\User\ProjectRole; |
|
|
|
use App\Models\User\User as UserModel;
|
|
|
|
use App\Models\WebSetting\WebLanguage;
|
|
|
|
use App\Services\AiBlogService;
|
|
|
|
use App\Services\DingService;
|
|
|
|
use App\Services\ProjectServer;
|
|
|
|
use App\Services\SyncService;
|
|
|
|
use App\Utils\LogUtils;
|
|
...
|
...
|
@@ -157,6 +158,7 @@ class ProjectLogic extends BaseLogic |
|
|
|
* @param :1->建站中 2->优化中 3->建站完成 6-》错误单
|
|
|
|
*/
|
|
|
|
public function projectSave(){
|
|
|
|
$this->checkAiBlog($this->param['main_lang_id'],$this->param['is_ai_blog'],$this->param['company'],$this->param['deploy_optimize']['company_en_name'],$this->param['deploy_optimize']['company_en_description']);
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
if($this->param['type'] == Project::TYPE_SEVEN){
|
|
...
|
...
|
@@ -197,6 +199,22 @@ class ProjectLogic extends BaseLogic |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :开启白帽验证产数
|
|
|
|
* @name :checkAiBlog
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/3/21 17:32
|
|
|
|
*/
|
|
|
|
public function checkAiBlog($main_lang_id,$is_ai_blog,$company,$company_en_name,$company_en_description){
|
|
|
|
if($is_ai_blog == 1){
|
|
|
|
if(empty($main_lang_id) || empty($company) || empty($company_en_name) || empty($company_en_description)){
|
|
|
|
$this->fail('开启ai_blog--请填写主语种+公司名称+公司英文名称+公司英文介绍');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :开启AI博客后
|
|
|
|
* @name :setAiBlog
|
|
|
|
* @author :lyh
|
...
|
...
|
|