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

配送方式

parent a3a45d8e
......@@ -251,6 +251,16 @@ return [
'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;
* ),
* @OA\Server(
* description="Api server",
* url="/guoyongzhi/weiShopNew",
* url="/zhangxiaolin/newshopback",
* ),
* @OA\SecurityScheme(
* securityScheme="Authorization",
......@@ -80,15 +80,15 @@ class BaseController extends ActiveController
// 格式化输出请求
$behaviors['contentNegotiator']['formats']['text/html'] = Response::FORMAT_JSON;
// 认证
$behaviors['HttpBearerAuth']=[
'class' => HttpBearerAuth::className(),
'optional' => ['login'],
];
// $behaviors['HttpBearerAuth']=[
// 'class' => HttpBearerAuth::className(),
// 'optional' => ['login'],
// ];
// 授权
$behaviors['authorizationFilter']=[
'class' => authorizationFilter::className(),
'optional' => ['login'],//过滤不需要验证的action
];
// $behaviors['authorizationFilter']=[
// 'class' => authorizationFilter::className(),
// 'optional' => ['login'],//过滤不需要验证的action
// ];
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