正在显示
11 个修改的文件
包含
15 行增加
和
15 行删除
| @@ -252,7 +252,7 @@ class CustomTemplateLogic extends BaseLogic | @@ -252,7 +252,7 @@ class CustomTemplateLogic extends BaseLogic | ||
| 252 | $this->setTemplateLog($bSettingInfo['template_id'] ?? 0,$html,$this->param['id']); | 252 | $this->setTemplateLog($bSettingInfo['template_id'] ?? 0,$html,$this->param['id']); |
| 253 | //通知 | 253 | //通知 |
| 254 | $this->addUpdateNotify(RouteMap::SOURCE_PAGE,$info['url']); | 254 | $this->addUpdateNotify(RouteMap::SOURCE_PAGE,$info['url']); |
| 255 | - $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$info['url']]); | 255 | + $this->curlDelRoute(['old_route'=>$info['url'],'new_route'=>$info['url']]); |
| 256 | return $this->success(); | 256 | return $this->success(); |
| 257 | } | 257 | } |
| 258 | 258 | ||
| @@ -391,7 +391,7 @@ class CustomTemplateLogic extends BaseLogic | @@ -391,7 +391,7 @@ class CustomTemplateLogic extends BaseLogic | ||
| 391 | } | 391 | } |
| 392 | } | 392 | } |
| 393 | $this->addUpdateNotify(RouteMap::SOURCE_PAGE,$route); | 393 | $this->addUpdateNotify(RouteMap::SOURCE_PAGE,$route); |
| 394 | - $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$route]); | 394 | + $this->curlDelRoute(['old_route'=>$info['url'],'new_route'=>$route]); |
| 395 | return true; | 395 | return true; |
| 396 | } | 396 | } |
| 397 | 397 | ||
| @@ -436,7 +436,7 @@ class CustomTemplateLogic extends BaseLogic | @@ -436,7 +436,7 @@ class CustomTemplateLogic extends BaseLogic | ||
| 436 | RouteMap::delRoute(RouteMap::SOURCE_PAGE, $id, $this->user['project_id']); | 436 | RouteMap::delRoute(RouteMap::SOURCE_PAGE, $id, $this->user['project_id']); |
| 437 | //生成一条删除路由记录 | 437 | //生成一条删除路由记录 |
| 438 | $info = $this->model->read(['id' => $id], ['id', 'url']); | 438 | $info = $this->model->read(['id' => $id], ['id', 'url']); |
| 439 | - $this->curlDelRoute(['route'=>$info['url']]); | 439 | + $this->curlDelRoute(['old_route'=>$info['url']]); |
| 440 | return $this->success(); | 440 | return $this->success(); |
| 441 | } | 441 | } |
| 442 | 442 |
| @@ -186,7 +186,7 @@ class InitHtmlLogic extends BaseLogic | @@ -186,7 +186,7 @@ class InitHtmlLogic extends BaseLogic | ||
| 186 | } | 186 | } |
| 187 | $this->saveTemplateCom($this->param['html'],$template_id,$this->param['type'],$is_list,$is_custom); | 187 | $this->saveTemplateCom($this->param['html'],$template_id,$this->param['type'],$is_list,$is_custom); |
| 188 | $route = RouteMap::getRoute('all',0,$this->user['project_id']); | 188 | $route = RouteMap::getRoute('all',0,$this->user['project_id']); |
| 189 | - $this->curlDelRoute(['route'=>$route,'new_route'=>$route]); | 189 | + $this->curlDelRoute(['old_route'=>$route,'new_route'=>$route]); |
| 190 | return $this->success(); | 190 | return $this->success(); |
| 191 | } | 191 | } |
| 192 | 192 |
| @@ -204,7 +204,7 @@ class BlogCategoryLogic extends BaseLogic | @@ -204,7 +204,7 @@ class BlogCategoryLogic extends BaseLogic | ||
| 204 | RouteMap::delRoute(RouteMap::SOURCE_BLOG_CATE, $id, $this->user['project_id']); | 204 | RouteMap::delRoute(RouteMap::SOURCE_BLOG_CATE, $id, $this->user['project_id']); |
| 205 | //生成一条删除路由记录 | 205 | //生成一条删除路由记录 |
| 206 | $info = $this->model->read(['id'=>$id],['id','alias']); | 206 | $info = $this->model->read(['id'=>$id],['id','alias']); |
| 207 | - $this->curlDelRoute(['route'=>$info['alias']]); | 207 | + $this->curlDelRoute(['old_route'=>$info['alias']]); |
| 208 | return $this->success(); | 208 | return $this->success(); |
| 209 | } | 209 | } |
| 210 | 210 |
| @@ -159,7 +159,7 @@ class BlogLogic extends BaseLogic | @@ -159,7 +159,7 @@ class BlogLogic extends BaseLogic | ||
| 159 | RouteMap::delRoute(RouteMap::SOURCE_BLOG, $id, $this->user['project_id']); | 159 | RouteMap::delRoute(RouteMap::SOURCE_BLOG, $id, $this->user['project_id']); |
| 160 | //生成一条删除路由记录 | 160 | //生成一条删除路由记录 |
| 161 | $info = $this->model->read(['id'=>$id],['id','url']); | 161 | $info = $this->model->read(['id'=>$id],['id','url']); |
| 162 | - $this->curlDelRoute(['route'=>$info['url']]); | 162 | + $this->curlDelRoute(['old_route'=>$info['url']]); |
| 163 | return $this->success(); | 163 | return $this->success(); |
| 164 | } | 164 | } |
| 165 | 165 |
| @@ -180,7 +180,7 @@ class CustomModuleCategoryLogic extends BaseLogic | @@ -180,7 +180,7 @@ class CustomModuleCategoryLogic extends BaseLogic | ||
| 180 | $info = $this->model->read(['id' => $id], ['id', 'route']); | 180 | $info = $this->model->read(['id' => $id], ['id', 'route']); |
| 181 | if ($info['route'] != $route) { | 181 | if ($info['route'] != $route) { |
| 182 | $this->addUpdateNotify(RouteMap::SOURCE_MODULE_CATE,$route); | 182 | $this->addUpdateNotify(RouteMap::SOURCE_MODULE_CATE,$route); |
| 183 | - $this->curlDelRoute(['route'=>$info['route'],'new_route'=>$route]); | 183 | + $this->curlDelRoute(['old_route'=>$info['route'],'new_route'=>$route]); |
| 184 | } | 184 | } |
| 185 | return true; | 185 | return true; |
| 186 | } | 186 | } |
| @@ -223,7 +223,7 @@ class CustomModuleCategoryLogic extends BaseLogic | @@ -223,7 +223,7 @@ class CustomModuleCategoryLogic extends BaseLogic | ||
| 223 | } | 223 | } |
| 224 | RouteMap::delRoute(RouteMap::SOURCE_MODULE_CATE, $id, $this->user['project_id']); | 224 | RouteMap::delRoute(RouteMap::SOURCE_MODULE_CATE, $id, $this->user['project_id']); |
| 225 | //通知 | 225 | //通知 |
| 226 | - $this->curlDelRoute(['route'=>$info['route']]); | 226 | + $this->curlDelRoute(['old_route'=>$info['route']]); |
| 227 | return $this->success(); | 227 | return $this->success(); |
| 228 | } | 228 | } |
| 229 | 229 |
| @@ -247,7 +247,7 @@ class CustomModuleContentLogic extends BaseLogic | @@ -247,7 +247,7 @@ class CustomModuleContentLogic extends BaseLogic | ||
| 247 | //生成一条删除路由记录 | 247 | //生成一条删除路由记录 |
| 248 | $info = $this->model->read(['id' => $id], ['id', 'route']); | 248 | $info = $this->model->read(['id' => $id], ['id', 'route']); |
| 249 | $this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route); | 249 | $this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route); |
| 250 | - $this->curlDelRoute(['route'=>$info['route'],'new_route'=>$route]); | 250 | + $this->curlDelRoute(['old_route'=>$info['route'],'new_route'=>$route]); |
| 251 | return true; | 251 | return true; |
| 252 | } | 252 | } |
| 253 | 253 | ||
| @@ -354,7 +354,7 @@ class CustomModuleContentLogic extends BaseLogic | @@ -354,7 +354,7 @@ class CustomModuleContentLogic extends BaseLogic | ||
| 354 | RouteMap::delRoute(RouteMap::SOURCE_MODULE, $id, $this->user['project_id']); | 354 | RouteMap::delRoute(RouteMap::SOURCE_MODULE, $id, $this->user['project_id']); |
| 355 | //通知 | 355 | //通知 |
| 356 | $info = $this->model->read(['id' => $id], ['id', 'route']); | 356 | $info = $this->model->read(['id' => $id], ['id', 'route']); |
| 357 | - $this->curlDelRoute(['route'=>$info['route']]); | 357 | + $this->curlDelRoute(['old_route'=>$info['route']]); |
| 358 | return $this->success(); | 358 | return $this->success(); |
| 359 | } | 359 | } |
| 360 | 360 |
| @@ -218,7 +218,7 @@ class NewsCategoryLogic extends BaseLogic | @@ -218,7 +218,7 @@ class NewsCategoryLogic extends BaseLogic | ||
| 218 | //删除路由映射 | 218 | //删除路由映射 |
| 219 | RouteMap::delRoute(RouteMap::SOURCE_NEWS_CATE, $id, $this->user['project_id']); | 219 | RouteMap::delRoute(RouteMap::SOURCE_NEWS_CATE, $id, $this->user['project_id']); |
| 220 | $info = $this->model->read(['id'=>$id],['id','alias']); | 220 | $info = $this->model->read(['id'=>$id],['id','alias']); |
| 221 | - $this->curlDelRoute(['route'=>$info['alias']]); | 221 | + $this->curlDelRoute(['old_route'=>$info['alias']]); |
| 222 | return $this->success(); | 222 | return $this->success(); |
| 223 | } | 223 | } |
| 224 | 224 |
| @@ -290,7 +290,7 @@ class NewsLogic extends BaseLogic | @@ -290,7 +290,7 @@ class NewsLogic extends BaseLogic | ||
| 290 | RouteMap::delRoute(RouteMap::SOURCE_NEWS, $id, $this->user['project_id']); | 290 | RouteMap::delRoute(RouteMap::SOURCE_NEWS, $id, $this->user['project_id']); |
| 291 | //生成一条删除路由记录 | 291 | //生成一条删除路由记录 |
| 292 | $info = $this->model->read(['id' => $id], ['id', 'url']); | 292 | $info = $this->model->read(['id' => $id], ['id', 'url']); |
| 293 | - $this->curlDelRoute(['route'=>$info['url']]); | 293 | + $this->curlDelRoute(['old_route'=>$info['url']]); |
| 294 | return $this->success(); | 294 | return $this->success(); |
| 295 | } | 295 | } |
| 296 | 296 |
| @@ -194,7 +194,7 @@ class CategoryLogic extends BaseLogic | @@ -194,7 +194,7 @@ class CategoryLogic extends BaseLogic | ||
| 194 | //生成一条删除路由记录 | 194 | //生成一条删除路由记录 |
| 195 | $info = $this->model->read(['id'=>$id],['id','route']); | 195 | $info = $this->model->read(['id'=>$id],['id','route']); |
| 196 | if($info !== false){ | 196 | if($info !== false){ |
| 197 | - $this->curlDelRoute(['route'=>$info['route']]); | 197 | + $this->curlDelRoute(['old_route'=>$info['route']]); |
| 198 | } | 198 | } |
| 199 | return $this->success(); | 199 | return $this->success(); |
| 200 | } | 200 | } |
| @@ -205,7 +205,7 @@ class KeywordLogic extends BaseLogic | @@ -205,7 +205,7 @@ class KeywordLogic extends BaseLogic | ||
| 205 | //生成一条删除路由记录 | 205 | //生成一条删除路由记录 |
| 206 | $info = $this->model->read(['id'=>$id],['id','route']); | 206 | $info = $this->model->read(['id'=>$id],['id','route']); |
| 207 | if($info !== false){ | 207 | if($info !== false){ |
| 208 | - $this->curlDelRoute(['route'=>$info['route']]); | 208 | + $this->curlDelRoute(['old_route'=>$info['route']]); |
| 209 | } | 209 | } |
| 210 | return $this->success(); | 210 | return $this->success(); |
| 211 | } | 211 | } |
| @@ -387,7 +387,7 @@ class ProductLogic extends BaseLogic | @@ -387,7 +387,7 @@ class ProductLogic extends BaseLogic | ||
| 387 | RouteMap::delRoute(RouteMap::SOURCE_PRODUCT, $id, $this->user['project_id']); | 387 | RouteMap::delRoute(RouteMap::SOURCE_PRODUCT, $id, $this->user['project_id']); |
| 388 | //生成一条删除路由记录 | 388 | //生成一条删除路由记录 |
| 389 | $info = $this->model->read(['id'=>$id],['id','route']); | 389 | $info = $this->model->read(['id'=>$id],['id','route']); |
| 390 | - $this->curlDelRoute(['route'=>$info['route']]); | 390 | + $this->curlDelRoute(['old_route'=>$info['route']]); |
| 391 | return $this->success(); | 391 | return $this->success(); |
| 392 | } | 392 | } |
| 393 | 393 |
-
请 注册 或 登录 后发表评论