wesmiler 5 년 전
부모
커밋
e8ab7eef98
2개의 변경된 파일152개의 추가작업 그리고 106개의 파일을 삭제
  1. 2 2
      app/Controller/IndexController.php
  2. 150 104
      composer.lock

+ 2 - 2
app/Controller/IndexController.php

@@ -19,8 +19,8 @@ class IndexController extends AbstractController
 
     public function index()
     {
-        $user = User::where(['id'=> 1])->first();
-        return ApiResource::success('接口测试', $user);
+        $page = "<title></title><div id='home'>欢迎访问,HCBET注单平台!</div>";
+        return $page;
     }
 
     public function test(){

+ 150 - 104
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "9bf15b34bc2b98d2024ed7f686fd144b",
+    "content-hash": "300330a03d63ecc572a42a60dc1fad16",
     "packages": [
         {
             "name": "doctrine/annotations",
@@ -2518,6 +2518,77 @@
             "time": "2020-11-06T07:50:08+00:00"
         },
         {
+            "name": "hyperf/resource",
+            "version": "v2.0.0",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/hyperf/resource.git",
+                "reference": "1e842b3c77533ceec2dbfb8559f01c50bbefadaf"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/hyperf/resource/zipball/1e842b3c77533ceec2dbfb8559f01c50bbefadaf",
+                "reference": "1e842b3c77533ceec2dbfb8559f01c50bbefadaf",
+                "shasum": "",
+                "mirrors": [
+                    {
+                        "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+                        "preferred": true
+                    }
+                ]
+            },
+            "require": {
+                "ext-json": "*",
+                "hyperf/http-message": "~2.0.0",
+                "hyperf/paginator": "~2.0.0",
+                "hyperf/utils": "~2.0.0",
+                "php": ">=7.2",
+                "psr/container": "^1.0"
+            },
+            "require-dev": {
+                "friendsofphp/php-cs-fixer": "^2.16",
+                "hyperf/command": "~2.0.0",
+                "hyperf/database": "~2.0.0",
+                "hyperf/devtool": "~2.0.0",
+                "hyperf/http-server": "~2.0.0",
+                "mockery/mockery": "^1.0",
+                "phpstan/phpstan": "^0.12",
+                "phpunit/phpunit": "^7.0"
+            },
+            "type": "library",
+            "extra": {
+                "branch-alias": {
+                    "dev-master": "2.0-dev"
+                },
+                "hyperf": {
+                    "config": "Hyperf\\Resource\\ConfigProvider"
+                }
+            },
+            "autoload": {
+                "psr-4": {
+                    "Hyperf\\Resource\\": "src/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "description": "A api resource component for hyperf.",
+            "homepage": "https://hyperf.io",
+            "keywords": [
+                "hyperf",
+                "php",
+                "resource"
+            ],
+            "support": {
+                "docs": "https://hyperf.wiki",
+                "issues": "https://github.com/hyperf/hyperf/issues",
+                "pull-request": "https://github.com/hyperf/hyperf/pulls",
+                "source": "https://github.com/hyperf/hyperf"
+            },
+            "time": "2020-10-07T08:29:23+00:00"
+        },
+        {
             "name": "hyperf/rpc",
             "version": "v2.0.12",
             "source": {
@@ -2874,6 +2945,68 @@
             "time": "2020-10-31T12:42:41+00:00"
         },
         {
+            "name": "hyperf/translation",
+            "version": "v2.0.18",
+            "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"
+            },
+            "type": "library",
+            "extra": {
+                "branch-alias": {
+                    "dev-master": "2.0-dev"
+                },
+                "hyperf": {
+                    "config": "Hyperf\\Translation\\ConfigProvider"
+                }
+            },
+            "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"
+            },
+            "time": "2020-11-07T08:53:43+00:00"
+        },
+        {
             "name": "hyperf/utils",
             "version": "v2.0.18",
             "source": {
@@ -3264,81 +3397,6 @@
             "time": "2020-09-14T14:23:00+00:00"
         },
         {
-            "name": "lcobucci/jwt",
-            "version": "3.3.3",
-            "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"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.1-dev"
-                }
-            },
-            "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"
-                }
-            ],
-            "time": "2020-08-20T13:22:28+00:00"
-        },
-        {
             "name": "markrogoyski/math-php",
             "version": "v0.49.0",
             "source": {
@@ -4032,17 +4090,17 @@
             "time": "2020-09-17T18:55:26+00:00"
         },
         {
-            "name": "phper666/jwt-auth",
-            "version": "v3.0.4",
+            "name": "phper666/hyperf-server-command",
+            "version": "v1.0.4",
             "source": {
                 "type": "git",
-                "url": "https://github.com/phper666/jwt-auth.git",
-                "reference": "48c50257cacb4168b1e1121f6b287708ad00a1e5"
+                "url": "https://github.com/phper666/hyperf-server-command.git",
+                "reference": "0ccf1105c9835d35bff956b054cb3601c0f9ad10"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/phper666/jwt-auth/zipball/48c50257cacb4168b1e1121f6b287708ad00a1e5",
-                "reference": "48c50257cacb4168b1e1121f6b287708ad00a1e5",
+                "url": "https://api.github.com/repos/phper666/hyperf-server-command/zipball/0ccf1105c9835d35bff956b054cb3601c0f9ad10",
+                "reference": "0ccf1105c9835d35bff956b054cb3601c0f9ad10",
                 "shasum": "",
                 "mirrors": [
                     {
@@ -4052,27 +4110,22 @@
                 ]
             },
             "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"
+                "hyperf/command": "required hyperf/command ~2.0.0 OR required hyperf/command ~1.1.0"
             },
             "type": "library",
             "extra": {
                 "hyperf": {
-                    "config": "Phper666\\JWTAuth\\ConfigProvider"
+                    "config": "Phper666\\HyperfServiceCommand\\ConfigProvider"
                 }
             },
             "autoload": {
                 "psr-4": {
-                    "Phper666\\JWTAuth\\": "src/"
-                }
+                    "Phper666\\HyperfServiceCommand\\": "src/"
+                },
+                "files": []
             },
             "notification-url": "https://packagist.org/downloads/",
             "license": [
@@ -4080,22 +4133,15 @@
             ],
             "authors": [
                 {
-                    "name": "Li Yuzhao",
-                    "email": "562405704@qq.com",
-                    "homepage": "https://github.com/phper666/jwt-auth",
-                    "role": "Developer"
+                    "name": "liyuzhao",
+                    "email": "562405704@qq.com"
                 }
             ],
-            "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"
+                "issues": "https://github.com/phper666/hyperf-server-command/issues",
+                "source": "https://github.com/phper666/hyperf-server-command/tree/master"
             },
-            "time": "2020-06-22T13:48:02+00:00"
+            "time": "2020-07-28T05:38:15+00:00"
         },
         {
             "name": "phpoption/phpoption",