Commit 99533e71 authored by 张晓林's avatar 张晓林

配送方式

parent a3a45d8e
...@@ -251,6 +251,16 @@ return [ ...@@ -251,6 +251,16 @@ return [
'GET,OPTIONS o2o-delivery-list' => 'o2o-delivery-list', 'GET,OPTIONS o2o-delivery-list' => 'o2o-delivery-list',
], ],
], ],
//配送方式
[
'class'=>'yii\rest\UrlRule',
'controller'=>[
'v1/transport/transport-method',
],
'extraPatterns'=>[
'GET,OPTIONS get-transport-method' => 'get-transport-method',
],
],
], ],
], ],
] ]
......
...@@ -20,7 +20,7 @@ use backend\components\v1\authorizationFilter; ...@@ -20,7 +20,7 @@ use backend\components\v1\authorizationFilter;
* ), * ),
* @OA\Server( * @OA\Server(
* description="Api server", * description="Api server",
* url="/guoyongzhi/weiShopNew", * url="/zhangxiaolin/newshopback",
* ), * ),
* @OA\SecurityScheme( * @OA\SecurityScheme(
* securityScheme="Authorization", * securityScheme="Authorization",
...@@ -80,15 +80,15 @@ class BaseController extends ActiveController ...@@ -80,15 +80,15 @@ class BaseController extends ActiveController
// 格式化输出请求 // 格式化输出请求
$behaviors['contentNegotiator']['formats']['text/html'] = Response::FORMAT_JSON; $behaviors['contentNegotiator']['formats']['text/html'] = Response::FORMAT_JSON;
// 认证 // 认证
$behaviors['HttpBearerAuth']=[ // $behaviors['HttpBearerAuth']=[
'class' => HttpBearerAuth::className(), // 'class' => HttpBearerAuth::className(),
'optional' => ['login'], // 'optional' => ['login'],
]; // ];
// 授权 // 授权
$behaviors['authorizationFilter']=[ // $behaviors['authorizationFilter']=[
'class' => authorizationFilter::className(), // 'class' => authorizationFilter::className(),
'optional' => ['login'],//过滤不需要验证的action // 'optional' => ['login'],//过滤不需要验证的action
]; // ];
return $behaviors; return $behaviors;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment