正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -143,6 +143,7 @@ class ProductController extends BaseController | @@ -143,6 +143,7 @@ class ProductController extends BaseController | ||
| 143 | $query = $query->where('status',$this->map['status']); | 143 | $query = $query->where('status',$this->map['status']); |
| 144 | } | 144 | } |
| 145 | if(!empty($this->param['start_at']) && !empty($this->param['end_at'])){ | 145 | if(!empty($this->param['start_at']) && !empty($this->param['end_at'])){ |
| 146 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param, true) . PHP_EOL, FILE_APPEND); | ||
| 146 | $query->whereBetween('created_at', [$this->param['start_at'].' 00:00:00',$this->param['end_at'].' 59:59:59']); | 147 | $query->whereBetween('created_at', [$this->param['start_at'].' 00:00:00',$this->param['end_at'].' 59:59:59']); |
| 147 | } | 148 | } |
| 148 | return $query; | 149 | return $query; |
-
请 注册 或 登录 后发表评论