作者 赵彬吉
@@ -19,17 +19,6 @@ class WebSettingHtmlController extends BaseController @@ -19,17 +19,6 @@ class WebSettingHtmlController extends BaseController
19 * @time :2023/4/28 14:45 19 * @time :2023/4/28 14:45
20 */ 20 */
21 public function save(WebSettingHtmlLogic $webSettingHtmlLogic){ 21 public function save(WebSettingHtmlLogic $webSettingHtmlLogic){
22 - if(isset($this->param) && !empty($this->param)){  
23 - $this->request->validate([  
24 - 'head_html'=>'required',  
25 - 'body_html'=>'required',  
26 - 'footer_html'=>'required'  
27 - ],[  
28 - 'head_html.required' => 'head_html不能为空',  
29 - 'body_html.required' => 'body_html不能为空',  
30 - 'footer_html.required' => 'footer_html不能为空'  
31 - ]);  
32 - }  
33 $info = $webSettingHtmlLogic->setting_html_save(); 22 $info = $webSettingHtmlLogic->setting_html_save();
34 $this->response('success',Code::SUCCESS,$info); 23 $this->response('success',Code::SUCCESS,$info);
35 } 24 }
@@ -378,7 +378,8 @@ class BTemplateLogic extends BaseLogic @@ -378,7 +378,8 @@ class BTemplateLogic extends BaseLogic
378 $route = 'all'; 378 $route = 'all';
379 } 379 }
380 } 380 }
381 - return $this->addUpdateNotify($type,$route); 381 + $this->addUpdateNotify($type,$route);
  382 + return $this->curlDelRoute($route);
382 } 383 }
383 384
384 /** 385 /**
@@ -113,6 +113,7 @@ class CustomTemplateLogic extends BaseLogic @@ -113,6 +113,7 @@ class CustomTemplateLogic extends BaseLogic
113 } 113 }
114 //通知 114 //通知
115 $this->addUpdateNotify(RouteMap::SOURCE_PAGE,$info['url']); 115 $this->addUpdateNotify(RouteMap::SOURCE_PAGE,$info['url']);
  116 + $this->curlDelRoute($info['url']);
116 return $this->success(); 117 return $this->success();
117 } 118 }
118 119
@@ -20,7 +20,6 @@ class News extends Base @@ -20,7 +20,6 @@ class News extends Base
20 if(!$value){ 20 if(!$value){
21 return date('Y-m-d H:i:s', strtotime($this->getAttribute('created_at'))); 21 return date('Y-m-d H:i:s', strtotime($this->getAttribute('created_at')));
22 } 22 }
23 -  
24 return $value; 23 return $value;
25 } 24 }
26 } 25 }
@@ -164,4 +164,10 @@ class Product extends Base @@ -164,4 +164,10 @@ class Product extends Base
164 // return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); 164 // return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
165 // } 165 // }
166 166
  167 + public function getSendTimeAttribute($value){
  168 + if(!$value){
  169 + return date('Y-m-d H:i:s', strtotime($this->getAttribute('created_at')));
  170 + }
  171 + return $value;
  172 + }
167 } 173 }