1
This commit is contained in:
@@ -23,6 +23,7 @@ class Auth
|
||||
"/area/province" => "get",// 获取省份信息
|
||||
"/area/city" => "get", // 获取城市信息
|
||||
"/area/county" => "get", // 获取区县信息
|
||||
"/basic/agreement/" => "get", // 获取协议内容
|
||||
"/callback/wxpay/inquiry/success" => "post", // 微信问诊支付回调
|
||||
"/callback/wxpay/inquiry/refund" => "post", // 微信问诊退款回调
|
||||
"/callback/wxpay/product/success" => "post", // 微信药品支付回调
|
||||
@@ -55,7 +56,11 @@ class Auth
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
if(!empty($this->whiteApi)){
|
||||
// 去除id在路由中的情况
|
||||
$path_info = preg_replace("/(\d+)/",'',$path_info);
|
||||
|
||||
if (array_key_exists($path_info, $this->whiteApi)) {
|
||||
if ($this->whiteApi[$path_info] == '*') {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user