Browse Source

报错类型

bianjunhui 2 năm trước cách đây
mục cha
commit
59afad516e
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      application/common/model/Jwttoken.php

+ 6 - 0
application/common/model/Jwttoken.php

@@ -46,6 +46,12 @@ class Jwttoken
                 'msg'    => $e->getMessage()
             ];
             exit;
+        }  catch (\DomainException $e) {
+            return [
+                'status' => 10002,
+                'msg'    => $e->getMessage()
+            ];
+            exit;
         } catch (\InvalidArgumentException $e) {
             return [
                 'status' => 10002,