wesmiler 5 лет назад
Родитель
Сommit
d40d9b2ad9

+ 4 - 4
storage/languages/zh_CN/api.php

@@ -2,10 +2,10 @@
 
 return [
     /* 公共 */
-    '1001'=> 'ok',
-    '1002'=> 'err',
-    // '1001'=> 'success',
-    // '1002'=> 'error',
+//    '1001'=> 'ok',
+//    '1002'=> 'err',
+    '1001'=> 'success',
+    '1002'=> 'error',
     '1003'=> 'exception',
     '1004'=> '路由不存在',
     '1005'=> '授权登录失败,请刷新重试',

+ 27 - 0
vendor/composer/InstalledVersions.php

@@ -470,6 +470,15 @@ private static $installed = array (
       ),
       'reference' => '1f1c56cadac391f4090384d4d8391997e32859ac',
     ),
+    'hyperf/translation' => 
+    array (
+      'pretty_version' => 'v2.0.18',
+      'version' => '2.0.18.0',
+      'aliases' => 
+      array (
+      ),
+      'reference' => '988811b9278a9ca82197916f47e4230cfd3facfa',
+    ),
     'hyperf/utils' => 
     array (
       'pretty_version' => 'v2.0.18',
@@ -531,6 +540,15 @@ private static $installed = array (
       ),
       'reference' => '6ede70583e101030bcace4dcddd648f760ddf642',
     ),
+    'lcobucci/jwt' => 
+    array (
+      'pretty_version' => '3.3.3',
+      'version' => '3.3.3.0',
+      'aliases' => 
+      array (
+      ),
+      'reference' => 'c1123697f6a2ec29162b82f170dd4a491f524773',
+    ),
     'markrogoyski/math-php' => 
     array (
       'pretty_version' => 'v0.49.0',
@@ -683,6 +701,15 @@ private static $installed = array (
       ),
       'reference' => '0ccf1105c9835d35bff956b054cb3601c0f9ad10',
     ),
+    'phper666/jwt-auth' => 
+    array (
+      'pretty_version' => 'v3.0.4',
+      'version' => '3.0.4.0',
+      'aliases' => 
+      array (
+      ),
+      'reference' => '48c50257cacb4168b1e1121f6b287708ad00a1e5',
+    ),
     'phpoption/phpoption' => 
     array (
       'pretty_version' => '1.7.5',

+ 1 - 0
vendor/composer/autoload_files.php

@@ -35,4 +35,5 @@ return array(
     '809f512612033e8c2eaab5c48aa38d39' => $vendorDir . '/openzipkin/zipkin/src/Zipkin/Annotations.php',
     'fdea4480df6c5882835d3b60a113de4d' => $vendorDir . '/hyperf/config/src/Functions.php',
     '6124b4c8570aa390c21fafd04a26c69f' => $vendorDir . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
+    '9ecd5fc4cc77829926e562e2b7c63f3a' => $vendorDir . '/hyperf/translation/src/Functions.php',
 );

+ 3 - 0
vendor/composer/autoload_psr4.php

@@ -39,6 +39,7 @@ return array(
     'Psr\\EventDispatcher\\' => array($vendorDir . '/psr/event-dispatcher/src'),
     'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
     'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src/Prophecy'),
+    'Phper666\\JWTAuth\\' => array($vendorDir . '/phper666/jwt-auth/src'),
     'Phper666\\HyperfServiceCommand\\' => array($vendorDir . '/phper666/hyperf-server-command/src'),
     'PhpParser\\' => array($vendorDir . '/nikic/php-parser/lib/PhpParser'),
     'PhpOption\\' => array($vendorDir . '/phpoption/phpoption/src/PhpOption'),
@@ -46,10 +47,12 @@ return array(
     'OpenTracing\\' => array($vendorDir . '/opentracing/opentracing/src/OpenTracing'),
     'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
     'MathPHP\\' => array($vendorDir . '/markrogoyski/math-php/src'),
+    'Lcobucci\\JWT\\' => array($vendorDir . '/lcobucci/jwt/src'),
     'Laminas\\ZendFrameworkBridge\\' => array($vendorDir . '/laminas/laminas-zendframework-bridge/src'),
     'Laminas\\Stdlib\\' => array($vendorDir . '/laminas/laminas-stdlib/src'),
     'Laminas\\Mime\\' => array($vendorDir . '/laminas/laminas-mime/src'),
     'Hyperf\\Utils\\' => array($vendorDir . '/hyperf/utils/src'),
+    'Hyperf\\Translation\\' => array($vendorDir . '/hyperf/translation/src'),
     'Hyperf\\Tracer\\' => array($vendorDir . '/hyperf/tracer/src'),
     'Hyperf\\Testing\\' => array($vendorDir . '/hyperf/testing/src'),
     'Hyperf\\Server\\' => array($vendorDir . '/hyperf/server/src'),

+ 16 - 0
vendor/composer/autoload_static.php

@@ -36,6 +36,7 @@ class ComposerStaticInit9622285a5a7446d42ea979e0e2b28dd5
         '809f512612033e8c2eaab5c48aa38d39' => __DIR__ . '/..' . '/openzipkin/zipkin/src/Zipkin/Annotations.php',
         'fdea4480df6c5882835d3b60a113de4d' => __DIR__ . '/..' . '/hyperf/config/src/Functions.php',
         '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
+        '9ecd5fc4cc77829926e562e2b7c63f3a' => __DIR__ . '/..' . '/hyperf/translation/src/Functions.php',
     );
 
     public static $prefixLengthsPsr4 = array (
@@ -89,6 +90,7 @@ class ComposerStaticInit9622285a5a7446d42ea979e0e2b28dd5
             'Psr\\EventDispatcher\\' => 20,
             'Psr\\Container\\' => 14,
             'Prophecy\\' => 9,
+            'Phper666\\JWTAuth\\' => 17,
             'Phper666\\HyperfServiceCommand\\' => 30,
             'PhpParser\\' => 10,
             'PhpOption\\' => 10,
@@ -105,6 +107,7 @@ class ComposerStaticInit9622285a5a7446d42ea979e0e2b28dd5
         ),
         'L' => 
         array (
+            'Lcobucci\\JWT\\' => 13,
             'Laminas\\ZendFrameworkBridge\\' => 28,
             'Laminas\\Stdlib\\' => 15,
             'Laminas\\Mime\\' => 13,
@@ -112,6 +115,7 @@ class ComposerStaticInit9622285a5a7446d42ea979e0e2b28dd5
         'H' => 
         array (
             'Hyperf\\Utils\\' => 13,
+            'Hyperf\\Translation\\' => 19,
             'Hyperf\\Tracer\\' => 14,
             'Hyperf\\Testing\\' => 15,
             'Hyperf\\Server\\' => 14,
@@ -317,6 +321,10 @@ class ComposerStaticInit9622285a5a7446d42ea979e0e2b28dd5
         array (
             0 => __DIR__ . '/..' . '/phpspec/prophecy/src/Prophecy',
         ),
+        'Phper666\\JWTAuth\\' => 
+        array (
+            0 => __DIR__ . '/..' . '/phper666/jwt-auth/src',
+        ),
         'Phper666\\HyperfServiceCommand\\' => 
         array (
             0 => __DIR__ . '/..' . '/phper666/hyperf-server-command/src',
@@ -345,6 +353,10 @@ class ComposerStaticInit9622285a5a7446d42ea979e0e2b28dd5
         array (
             0 => __DIR__ . '/..' . '/markrogoyski/math-php/src',
         ),
+        'Lcobucci\\JWT\\' => 
+        array (
+            0 => __DIR__ . '/..' . '/lcobucci/jwt/src',
+        ),
         'Laminas\\ZendFrameworkBridge\\' => 
         array (
             0 => __DIR__ . '/..' . '/laminas/laminas-zendframework-bridge/src',
@@ -361,6 +373,10 @@ class ComposerStaticInit9622285a5a7446d42ea979e0e2b28dd5
         array (
             0 => __DIR__ . '/..' . '/hyperf/utils/src',
         ),
+        'Hyperf\\Translation\\' => 
+        array (
+            0 => __DIR__ . '/..' . '/hyperf/translation/src',
+        ),
         'Hyperf\\Tracer\\' => 
         array (
             0 => __DIR__ . '/..' . '/hyperf/tracer/src',

+ 212 - 0
vendor/composer/installed.json

@@ -3530,6 +3530,71 @@
             "install-path": "../hyperf/tracer"
         },
         {
+            "name": "hyperf/translation",
+            "version": "v2.0.18",
+            "version_normalized": "2.0.18.0",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/hyperf/translation.git",
+                "reference": "988811b9278a9ca82197916f47e4230cfd3facfa"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/hyperf/translation/zipball/988811b9278a9ca82197916f47e4230cfd3facfa",
+                "reference": "988811b9278a9ca82197916f47e4230cfd3facfa",
+                "shasum": "",
+                "mirrors": [
+                    {
+                        "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+                        "preferred": true
+                    }
+                ]
+            },
+            "require": {
+                "hyperf/contract": "~2.0.0",
+                "hyperf/utils": "~2.0.0",
+                "php": ">=7.2",
+                "psr/container": "^1.0"
+            },
+            "require-dev": {
+                "friendsofphp/php-cs-fixer": "^2.14",
+                "mockery/mockery": "^1.2"
+            },
+            "time": "2020-11-07T08:53:43+00:00",
+            "type": "library",
+            "extra": {
+                "branch-alias": {
+                    "dev-master": "2.0-dev"
+                },
+                "hyperf": {
+                    "config": "Hyperf\\Translation\\ConfigProvider"
+                }
+            },
+            "installation-source": "dist",
+            "autoload": {
+                "files": [
+                    "src/Functions.php"
+                ],
+                "psr-4": {
+                    "Hyperf\\Translation\\": "src/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "description": "An independent translation component, forked by illuminate/translation.",
+            "keywords": [
+                "hyperf",
+                "translation"
+            ],
+            "support": {
+                "issues": "https://github.com/hyperf/translation/issues",
+                "source": "https://github.com/hyperf/translation/tree/v2.0.18"
+            },
+            "install-path": "../hyperf/translation"
+        },
+        {
             "name": "hyperf/utils",
             "version": "v2.0.18",
             "version_normalized": "2.0.18.0",
@@ -3938,6 +4003,84 @@
             "install-path": "../laminas/laminas-zendframework-bridge"
         },
         {
+            "name": "lcobucci/jwt",
+            "version": "3.3.3",
+            "version_normalized": "3.3.3.0",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/lcobucci/jwt.git",
+                "reference": "c1123697f6a2ec29162b82f170dd4a491f524773"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/lcobucci/jwt/zipball/c1123697f6a2ec29162b82f170dd4a491f524773",
+                "reference": "c1123697f6a2ec29162b82f170dd4a491f524773",
+                "shasum": "",
+                "mirrors": [
+                    {
+                        "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+                        "preferred": true
+                    }
+                ]
+            },
+            "require": {
+                "ext-mbstring": "*",
+                "ext-openssl": "*",
+                "php": "^5.6 || ^7.0"
+            },
+            "require-dev": {
+                "mikey179/vfsstream": "~1.5",
+                "phpmd/phpmd": "~2.2",
+                "phpunit/php-invoker": "~1.1",
+                "phpunit/phpunit": "^5.7 || ^7.3",
+                "squizlabs/php_codesniffer": "~2.3"
+            },
+            "time": "2020-08-20T13:22:28+00:00",
+            "type": "library",
+            "extra": {
+                "branch-alias": {
+                    "dev-master": "3.1-dev"
+                }
+            },
+            "installation-source": "dist",
+            "autoload": {
+                "psr-4": {
+                    "Lcobucci\\JWT\\": "src"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "BSD-3-Clause"
+            ],
+            "authors": [
+                {
+                    "name": "Luís Otávio Cobucci Oblonczyk",
+                    "email": "lcobucci@gmail.com",
+                    "role": "Developer"
+                }
+            ],
+            "description": "A simple library to work with JSON Web Token and JSON Web Signature",
+            "keywords": [
+                "JWS",
+                "jwt"
+            ],
+            "support": {
+                "issues": "https://github.com/lcobucci/jwt/issues",
+                "source": "https://github.com/lcobucci/jwt/tree/3.3.3"
+            },
+            "funding": [
+                {
+                    "url": "https://github.com/lcobucci",
+                    "type": "github"
+                },
+                {
+                    "url": "https://www.patreon.com/lcobucci",
+                    "type": "patreon"
+                }
+            ],
+            "install-path": "../lcobucci/jwt"
+        },
+        {
             "name": "markrogoyski/math-php",
             "version": "v0.49.0",
             "version_normalized": "0.49.0.0",
@@ -5055,6 +5198,75 @@
             "install-path": "../phper666/hyperf-server-command"
         },
         {
+            "name": "phper666/jwt-auth",
+            "version": "v3.0.4",
+            "version_normalized": "3.0.4.0",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/phper666/jwt-auth.git",
+                "reference": "48c50257cacb4168b1e1121f6b287708ad00a1e5"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/phper666/jwt-auth/zipball/48c50257cacb4168b1e1121f6b287708ad00a1e5",
+                "reference": "48c50257cacb4168b1e1121f6b287708ad00a1e5",
+                "shasum": "",
+                "mirrors": [
+                    {
+                        "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+                        "preferred": true
+                    }
+                ]
+            },
+            "require": {
+                "ext-swoole": ">=4.4",
+                "lcobucci/jwt": "^3.2",
+                "nesbot/carbon": "^1.0 || ^2.0",
+                "php": ">=7.2"
+            },
+            "suggest": {
+                "hyperf/cache": "required hyperf/cache ~2.0.0 OR required hyperf/cache ~1.1.0",
+                "hyperf/command": "required hyperf/command ~2.0.0 OR required hyperf/command ~1.1.0",
+                "hyperf/config": "required hyperf/config ~2.0.0 OR required hyperf/config ~1.1.0",
+                "hyperf/di": "required hyperf/di ~2.0.0 OR required hyperf/di ~1.1.0"
+            },
+            "time": "2020-06-22T13:48:02+00:00",
+            "type": "library",
+            "extra": {
+                "hyperf": {
+                    "config": "Phper666\\JWTAuth\\ConfigProvider"
+                }
+            },
+            "installation-source": "dist",
+            "autoload": {
+                "psr-4": {
+                    "Phper666\\JWTAuth\\": "src/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Li Yuzhao",
+                    "email": "562405704@qq.com",
+                    "homepage": "https://github.com/phper666/jwt-auth",
+                    "role": "Developer"
+                }
+            ],
+            "description": "jwt-auth Component",
+            "keywords": [
+                "hyperf",
+                "php"
+            ],
+            "support": {
+                "issues": "https://github.com/phper666/jwt-auth/issues",
+                "source": "https://github.com/phper666/jwt-auth/tree/3.0.1"
+            },
+            "install-path": "../phper666/jwt-auth"
+        },
+        {
             "name": "phpoption/phpoption",
             "version": "1.7.5",
             "version_normalized": "1.7.5.0",

+ 27 - 0
vendor/composer/installed.php

@@ -457,6 +457,15 @@
       ),
       'reference' => '1f1c56cadac391f4090384d4d8391997e32859ac',
     ),
+    'hyperf/translation' => 
+    array (
+      'pretty_version' => 'v2.0.18',
+      'version' => '2.0.18.0',
+      'aliases' => 
+      array (
+      ),
+      'reference' => '988811b9278a9ca82197916f47e4230cfd3facfa',
+    ),
     'hyperf/utils' => 
     array (
       'pretty_version' => 'v2.0.18',
@@ -518,6 +527,15 @@
       ),
       'reference' => '6ede70583e101030bcace4dcddd648f760ddf642',
     ),
+    'lcobucci/jwt' => 
+    array (
+      'pretty_version' => '3.3.3',
+      'version' => '3.3.3.0',
+      'aliases' => 
+      array (
+      ),
+      'reference' => 'c1123697f6a2ec29162b82f170dd4a491f524773',
+    ),
     'markrogoyski/math-php' => 
     array (
       'pretty_version' => 'v0.49.0',
@@ -670,6 +688,15 @@
       ),
       'reference' => '0ccf1105c9835d35bff956b054cb3601c0f9ad10',
     ),
+    'phper666/jwt-auth' => 
+    array (
+      'pretty_version' => 'v3.0.4',
+      'version' => '3.0.4.0',
+      'aliases' => 
+      array (
+      ),
+      'reference' => '48c50257cacb4168b1e1121f6b287708ad00a1e5',
+    ),
     'phpoption/phpoption' => 
     array (
       'pretty_version' => '1.7.5',