正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -172,7 +172,7 @@ class Sundry extends Api | @@ -172,7 +172,7 @@ class Sundry extends Api | ||
172 | { | 172 | { |
173 | $model = new WeekTemplate(); | 173 | $model = new WeekTemplate(); |
174 | $week = $this->request->param('week'); | 174 | $week = $this->request->param('week'); |
175 | - if (empty($week)) $this->error('缺少参数 week!'); | 175 | + if (isset($week) && $week == '' ) $this->error('缺少参数 week!'); |
176 | $data = $model->selectData(['type' => $week]); | 176 | $data = $model->selectData(['type' => $week]); |
177 | foreach ($data as $k => $v) { | 177 | foreach ($data as $k => $v) { |
178 | $data[$k] = $v['starttime'] . '-' . $v['endtime']; | 178 | $data[$k] = $v['starttime'] . '-' . $v['endtime']; |
-
请 注册 或 登录 后发表评论