diff --git a/app/gateway/controller/v4/Handle.php b/app/gateway/controller/v4/Handle.php index 56c0b9d..5ffdb5f 100644 --- a/app/gateway/controller/v4/Handle.php +++ b/app/gateway/controller/v4/Handle.php @@ -18,7 +18,7 @@ class Handle extends Core # 查询接口 一般用于查询数据,同步执行 public function query(): void { - try{ + $settingStatus = sysconf('settingStatus'); if ($settingStatus == 1) { $this->no(-1000); @@ -30,17 +30,14 @@ class Handle extends Core } $data = $this->channel($this->mid, $this->product, false); $this->yes($data); - } catch (\Exception $e){ - $this->writelog($e->getMessage(), 'error'); - $this->no(-100,$e->getMessage()); - } + } # 提交接口 一般用于提交数据,异步执行 public function submit(): void { - try{ + $settingStatus = sysconf('settingStatus'); if ($settingStatus == 1) { $this->no(-1000); @@ -53,11 +50,11 @@ class Handle extends Core $data = $this->channel($this->mid, $this->product, true); $this->yes($data); - } catch (\Exception $e){ - - $this->writelog($e->getMessage(), 'error'); - $this->no(-100,$e->getMessage()); - } +// } catch (\Exception $e){ +// +// $this->writelog($e->getMessage(), 'error'); +// $this->no(-100,$e->getMessage()); +// } }