This commit is contained in:
2023-04-18 13:27:35 +08:00
parent fde2f44766
commit 9acd823317
6 changed files with 61 additions and 54 deletions
+5
View File
@@ -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;