zhangchangchun %!s(int64=5) %!d(string=hai) anos
pai
achega
6f82d46439
Modificáronse 3 ficheiros con 1 adicións e 10 borrados
  1. 1 2
      app/Http/Middleware/VerifyShopMiddleware.php
  2. 0 1
      bootstrap/app.php
  3. 0 7
      routes/api.php

+ 1 - 2
app/Http/Middleware/VerifyShopMiddleware.php

@@ -8,7 +8,7 @@
 
 namespace App\Http\Middleware;
 
-use App\Traits\ShopInfoTrait;
+use App\Shop;
 use Closure;
 use Tymon\JWTAuth\Exceptions\JWTException;
 use Tymon\JWTAuth\Exceptions\TokenExpiredException;
@@ -16,7 +16,6 @@ use Tymon\JWTAuth\Exceptions\TokenInvalidException;
 use Tymon\JWTAuth\Facades\JWTAuth;
 
 class VerifyShopMiddleware {
-    use ShopInfoTrait;
     /**
      * Handle an incoming request.
      *

+ 0 - 1
bootstrap/app.php

@@ -71,7 +71,6 @@ $app->singleton(
 $app->routeMiddleware([
     'auth' => App\Http\Middleware\Authenticate::class,
     'jwt.chxq_auth' => App\Http\Middleware\JwtAuthMiddleware::class,
-    //'chxq.shop_check' => App\Http\Middleware\VerifyShopMiddleware::class,
 ]);
 
 /*

+ 0 - 7
routes/api.php

@@ -35,11 +35,6 @@ $api->version('v1', [
         $api->post('refresh', 'AuthController@refresh');
     });
 
-    //$api->group(['middleware' => 'chxq.shop_check'], function ($api) {
-        $api->get('statistics', 'IndexController@index');
-        $api->get('statistics/sales', 'IndexController@sales');
-    //});
-
     $api->group(['middleware' => 'jwt.chxq_auth'], function ($api) {
         //新增编辑
         $api->post('addShop', 'ShopController@addShop');
@@ -57,7 +52,5 @@ $api->version('v1', [
 
         //公共配置
         $api->post('configIndex', 'ConfigController@index');
-
-
     });
 });