zhangchangchun 5 年之前
父节点
当前提交
3a168a0cc9
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      bootstrap/app.php
  2. 1 1
      routes/api.php

+ 1 - 0
bootstrap/app.php

@@ -71,6 +71,7 @@ $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,
 ]);
 
 /*

+ 1 - 1
routes/api.php

@@ -22,7 +22,7 @@ $api->version('v1', [
     $api->post('login', 'AuthController@login');
     //获取商户信息
     $api->post('getShopInfo', 'ShopController@getTokenShop');
-
+    //$api->group(['middleware' => 'chxq.shop_check'], function ($api) {});
     $api->get('statistics', 'IndexController@index');
     $api->get('statistics/sales', 'IndexController@sales');