diff --git a/app/notify_api/route/index.php b/app/notify_api/route/index.php index d911dbd..0baa6c6 100644 --- a/app/notify_api/route/index.php +++ b/app/notify_api/route/index.php @@ -33,14 +33,21 @@ if ($pathInfo == null) { if($version!='api'){ if(!str_contains($pathInfo, 'api.')){ - app()->route->any('call','/gateway/api.notify/call'); + if(str_contains($version, '.')){ + $versions = str_replace(".", "", $version); + #支持小版本的更新 + app()->route->any('call','/gateway/'.$versions.'.notify/call'); + }else{ + app()->route->any('call','/gateway/'.$version.'.notify/call'); + } + } }else{ - if(!str_contains($pathInfo, 'api.')){ - app()->route->any('call','/gateway/'.$version.'.notify/call'); +// app()->route->any('call','/gateway/'.$version.'.notify/call'); + app()->route->any('call','/gateway/api.notify/call'); } }