|
@@ -10,6 +10,7 @@ use App\Models\Project\AiBlogTask; |
|
@@ -10,6 +10,7 @@ use App\Models\Project\AiBlogTask; |
|
10
|
use App\Models\Project\ProjectAiSetting;
|
10
|
use App\Models\Project\ProjectAiSetting;
|
|
11
|
use App\Models\RouteMap\RouteMap;
|
11
|
use App\Models\RouteMap\RouteMap;
|
|
12
|
use App\Services\AiBlogService;
|
12
|
use App\Services\AiBlogService;
|
|
|
|
13
|
+use Illuminate\Support\Facades\Artisan;
|
|
13
|
use Illuminate\Support\Facades\Cache;
|
14
|
use Illuminate\Support\Facades\Cache;
|
|
14
|
|
15
|
|
|
15
|
class AiBlogLogic extends BaseLogic
|
16
|
class AiBlogLogic extends BaseLogic
|
|
@@ -138,12 +139,10 @@ class AiBlogLogic extends BaseLogic |
|
@@ -138,12 +139,10 @@ class AiBlogLogic extends BaseLogic |
|
138
|
RouteMap::delRoute(RouteMap::SOURCE_AI_BLOG, $id, $this->user['project_id']);
|
139
|
RouteMap::delRoute(RouteMap::SOURCE_AI_BLOG, $id, $this->user['project_id']);
|
|
139
|
$this->model->del(['id'=>$id]);
|
140
|
$this->model->del(['id'=>$id]);
|
|
140
|
}
|
141
|
}
|
|
141
|
- shell_exec('php artisan save_ai_blog_list '.$this->user['project_id'].' > /dev/null 2>&1 &');
|
142
|
+ Artisan::call('save_ai_blog_list', ['project_id' => $this->user['project_id']]);
|
|
142
|
}catch (\Exception $e){
|
143
|
}catch (\Exception $e){
|
|
143
|
$this->fail('删除失败');
|
144
|
$this->fail('删除失败');
|
|
144
|
}
|
145
|
}
|
|
145
|
return $this->success();
|
146
|
return $this->success();
|
|
146
|
}
|
147
|
}
|
|
147
|
-
|
|
|
|
148
|
-
|
|
|
|
149
|
} |
148
|
} |