|
...
|
...
|
@@ -120,7 +120,13 @@ class AiBlogLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function blogDelete(){
|
|
|
|
try {
|
|
|
|
$aiSettingInfo = $this->getProjectAiSetting();
|
|
|
|
$aiBlogService = new AiBlogService();
|
|
|
|
foreach ($this->param['ids'] as $id) {
|
|
|
|
$info = $this->model->read(['id'=>$id],['task_id']);
|
|
|
|
$aiBlogService->mch_id = $aiSettingInfo['mch_id'];
|
|
|
|
$aiBlogService->key = $aiSettingInfo['key'];
|
|
|
|
$aiBlogService->delDetail($info['task_id']);
|
|
|
|
//删除路由映射
|
|
|
|
RouteMap::delRoute(RouteMap::SOURCE_AI_BLOG, $id, $this->user['project_id']);
|
|
|
|
$this->model->del(['id'=>$id]);
|
...
|
...
|
|