作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

... ... @@ -41,6 +41,22 @@ class UpdateController extends BaseController
], [
'project_id.required' => 'project_id不能为空',
]);
$info = getDeployOptimize($this->param['project_id']);
if (empty($info['main_keyword'])) {
$this->fail('项目核心关键词未设置');
}
if (empty($info['company_en_name'])) {
$this->fail('公司英文全称未设置');
}
if (empty($info['company_en_description'])) {
$this->fail('公司英文描述未设置');
}
if (empty($info['keyword_prefix'])) {
$this->fail('前缀关键词未设置');
}
if (empty($info['keyword_suffix'])) {
$this->fail('后缀关键词未设置');
}
try {
ProjectUpdateTdk::add_task($this->param['project_id']);
} catch (\Exception $e) {
... ...
... ... @@ -114,7 +114,7 @@ class AiBlogController extends BaseController
}
/**
* @remark :Ai博客发布
* @remark :编辑Ai博客发布
* @name :save
* @author :lyh
* @method :post
... ...
... ... @@ -39,7 +39,7 @@ class AiBlogLogic extends BaseLogic
}
/**
* @remark :ai发布博客
* @remark :编辑ai发布博客
* @name :blogSave
* @author :lyh
* @method :post
... ...
... ... @@ -12,6 +12,7 @@ use App\Models\Product\Keyword;
use App\Models\Product\KeywordRelated;
use App\Models\Product\Product;
use App\Models\RouteMap\RouteMap;
use App\Models\User\User;
use Illuminate\Support\Facades\DB;
/**
... ... @@ -351,6 +352,9 @@ class KeywordLogic extends BaseLogic
* @time :2024/12/5 15:37
*/
public function delAllKeyword(){
if($this->user['login_source'] != User::LOGIN_AUTO_SOURCE){
return $this->success();
}
DB::beginTransaction();
try {
//截断关联表
... ...