作者 lyh

gx

@@ -64,8 +64,8 @@ class BlogLogic extends BaseLogic @@ -64,8 +64,8 @@ class BlogLogic extends BaseLogic
64 $info = $this->model->read(['id'=>$id],['id','url']); 64 $info = $this->model->read(['id'=>$id],['id','url']);
65 if($info['url'] != $route){ 65 if($info['url'] != $route){
66 $this->addUpdateNotify(RouteMap::SOURCE_BLOG,$route); 66 $this->addUpdateNotify(RouteMap::SOURCE_BLOG,$route);
67 - $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$route]);  
68 } 67 }
  68 + $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$route]);
69 return true; 69 return true;
70 } 70 }
71 71
@@ -96,8 +96,8 @@ class NewsLogic extends BaseLogic @@ -96,8 +96,8 @@ class NewsLogic extends BaseLogic
96 $info = $this->model->read(['id' => $id], ['id', 'url']); 96 $info = $this->model->read(['id' => $id], ['id', 'url']);
97 if ($info['url'] != $route) { 97 if ($info['url'] != $route) {
98 $this->addUpdateNotify(RouteMap::SOURCE_NEWS,$route); 98 $this->addUpdateNotify(RouteMap::SOURCE_NEWS,$route);
99 - $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$route]);  
100 } 99 }
  100 + $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$route]);
101 return true; 101 return true;
102 } 102 }
103 103
@@ -332,8 +332,8 @@ class ProductLogic extends BaseLogic @@ -332,8 +332,8 @@ class ProductLogic extends BaseLogic
332 $info = $this->model->read(['id'=>$id]); 332 $info = $this->model->read(['id'=>$id]);
333 if($info['route'] != $route){ 333 if($info['route'] != $route){
334 $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$route); 334 $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$route);
335 - $this->curlDelRoute(['route'=>$info['route'],'new_route'=>$route]);  
336 } 335 }
  336 + $this->curlDelRoute(['route'=>$info['route'],'new_route'=>$route]);
337 return $route; 337 return $route;
338 } 338 }
339 339