正在显示
3 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -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'])){ |
-
请 注册 或 登录 后发表评论