From b1aef9f79977a5e3d3e06991836688fbd02d0c69 Mon Sep 17 00:00:00 2001 From: Anyon <zoujingli@qq.com> Date: Wed, 7 Aug 2019 16:38:12 +0800 Subject: [PATCH] Update Index.php --- application/service/controller/Index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/service/controller/Index.php b/application/service/controller/Index.php index c250f6f2f..9673853a6 100644 --- a/application/service/controller/Index.php +++ b/application/service/controller/Index.php @@ -19,6 +19,7 @@ use app\service\service\BuildService; use app\service\service\WechatService; use library\Controller; use think\Db; +use think\exception\HttpResponseException; /** * 公众授权管理 @@ -90,7 +91,7 @@ class Index extends Controller if (data_save('WechatServiceConfig', $data, 'authorizer_appid')) { $this->success('更新公众号授权成功!', ''); } - } catch (\think\exception\HttpResponseException $exception) { + } catch (HttpResponseException $exception) { throw $exception; } catch (\Exception $e) { $this->error("获取授权信息失败,请稍候再试!<br>{$e->getMessage()}"); @@ -120,7 +121,7 @@ class Index extends Controller } } $this->success('同步所有授权信息成功!', ''); - } catch (\think\exception\HttpResponseException $exception) { + } catch (HttpResponseException $exception) { throw $exception; } catch (\Exception $e) { $this->error("同步授权失败,请稍候再试!<br>{$e->getMessage()}");