|
...
|
...
|
@@ -113,7 +113,7 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
}
|
|
|
|
//通知
|
|
|
|
$this->addUpdateNotify(RouteMap::SOURCE_PAGE,$info['url']);
|
|
|
|
$this->curlDelRoute($info['url']);
|
|
|
|
$this->curlDelRoute(['route'=>$info['url'],'new_route'=>$info['url']]);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -213,7 +213,7 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
}
|
|
|
|
if($info['url'] != $route){
|
|
|
|
$this->addUpdateNotify(RouteMap::SOURCE_PAGE,$route);
|
|
|
|
$this->curlDelRoute($info['url']);
|
|
|
|
$this->curlDelRoute(['route'=>$info['url'],'new_route'=>$route]);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
...
|
...
|
@@ -259,7 +259,7 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
RouteMap::delRoute(RouteMap::SOURCE_PAGE, $id, $this->user['project_id']);
|
|
|
|
//生成一条删除路由记录
|
|
|
|
$info = $this->model->read(['id' => $id], ['id', 'url']);
|
|
|
|
$this->curlDelRoute($info['url']);
|
|
|
|
$this->curlDelRoute(['route'=>$info['url']]);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|