作者 lyh

gx

@@ -62,7 +62,7 @@ class BlogController extends BaseController @@ -62,7 +62,7 @@ class BlogController extends BaseController
62 } 62 }
63 }); 63 });
64 } 64 }
65 - if(isset($this->map['status']) && !empty($this->map['status'])){ 65 + if(isset($this->map['status'])){
66 $query = $query->where('status',$this->map['status']); 66 $query = $query->where('status',$this->map['status']);
67 } 67 }
68 if(!empty($this->map['start_at']) && !empty($this->map['end_at'])){ 68 if(!empty($this->map['start_at']) && !empty($this->map['end_at'])){
@@ -62,7 +62,7 @@ class NewsController extends BaseController @@ -62,7 +62,7 @@ class NewsController extends BaseController
62 } 62 }
63 }); 63 });
64 } 64 }
65 - if(isset($this->map['status']) && !empty($this->map['status'])){ 65 + if(isset($this->map['status'])){
66 $query = $query->where('status',$this->map['status']); 66 $query = $query->where('status',$this->map['status']);
67 } 67 }
68 if(!empty($this->map['start_at']) && !empty($this->map['end_at'])){ 68 if(!empty($this->map['start_at']) && !empty($this->map['end_at'])){
@@ -87,7 +87,7 @@ class ProductController extends BaseController @@ -87,7 +87,7 @@ class ProductController extends BaseController
87 if(isset($this->map['title']) && !empty($this->map['title'])){ 87 if(isset($this->map['title']) && !empty($this->map['title'])){
88 $query = $query->where('title','like','%'.$this->map['title'].'%'); 88 $query = $query->where('title','like','%'.$this->map['title'].'%');
89 } 89 }
90 - if(isset($this->map['status']) && !empty($this->map['status'])){ 90 + if(isset($this->map['status'])){
91 $query = $query->where('status',$this->map['status']); 91 $query = $query->where('status',$this->map['status']);
92 } 92 }
93 if(!empty($this->map['start_at']) && !empty($this->map['end_at'])){ 93 if(!empty($this->map['start_at']) && !empty($this->map['end_at'])){