ソースを参照

Update Fans.php

邹景立 5 年 前
コミット
55101d845e
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/wechat/controller/Fans.php

+ 2 - 2
app/wechat/controller/Fans.php

@@ -74,8 +74,6 @@ class Fans extends Controller
         try {
             $code = sysqueue('同步微信用户数据', "xadmin:fansall", 1, [], 0);
             $this->success('创建任务成功,请等待完成!', $code);
-        } catch (HttpResponseException $exception) {
-            throw $exception;
         } catch (Exception $exception) {
             $queue = $exception->getData();
             if (isset($queue['code'])) {
@@ -83,6 +81,8 @@ class Fans extends Controller
             } else {
                 $this->error($exception->getMessage());
             }
+        } catch (HttpResponseException $exception) {
+            throw $exception;
         } catch (\Exception $exception) {
             $this->error("创建任务失败,{$exception->getMessage()}");
         }