diff --git a/application/timetask/controller/Index.php b/application/timetask/controller/Index.php index d889285..9391b16 100644 --- a/application/timetask/controller/Index.php +++ b/application/timetask/controller/Index.php @@ -37,12 +37,13 @@ class Index extends Api Db::name('history')->where('expect', $item['expect'])->update($insert_data); } } + $this->success('获取成功'); } catch (\Exception $e) { $this->error($e->getMessage()); } - $this->success('获取成功'); + } else { $this->error('获取失败'); }