作者 耿培杰

修改创建订单配送时间接口

@@ -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'];