作者 lyh

gx脚本锚文本数量

... ... @@ -20,6 +20,7 @@ use App\Models\Project\Project;
use App\Models\Project\ProjectAiSetting;
use App\Models\Visit\Visit;
use App\Models\WebSetting\WebSetting;
use App\Services\AiBlogService;
use App\Services\ProjectServer;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
... ... @@ -42,7 +43,7 @@ class lyhDemo extends Command
protected $description = '更新路由';
public function handle(){
$projectIds = DB::table('gl_project_ai_setting')
$projectIds = DB::table('gl_project_ai_setting_copy1')
->whereIn('mch_id', function ($query) {
$query->select('mch_id')
->from('gl_project_ai_setting')
... ...
... ... @@ -339,10 +339,10 @@ class ProjectLogic extends BaseLogic
public function createAuthor($project_id,$mch_id,$key){
//查看当前项目是否已经创建了作者
$aiBlogTaskModel = new AiBlogTask();
$count = $aiBlogTaskModel->counts(['project_id'=>$project_id,'type' => 1]);
if($count > 0){
return true;
}
// $count = $aiBlogTaskModel->counts(['project_id'=>$project_id,'type' => 1]);
// if($count > 0){
// return true;
// }
$aiBlogService = new AiBlogService();
$aiBlogService->mch_id = $mch_id;
$aiBlogService->key = $key;
... ...