...
|
...
|
@@ -172,7 +172,7 @@ class Sundry extends Api |
|
|
{
|
|
|
$model = new WeekTemplate();
|
|
|
$week = $this->request->param('week');
|
|
|
if (empty($week)) $this->error('缺少参数 week!');
|
|
|
if (isset($week) && $week == '' ) $this->error('缺少参数 week!');
|
|
|
$data = $model->selectData(['type' => $week]);
|
|
|
foreach ($data as $k => $v) {
|
|
|
$data[$k] = $v['starttime'] . '-' . $v['endtime'];
|
...
|
...
|
|