From db2ba7f6d9e0f24193e1b5e8ec90afc925075cc7 Mon Sep 17 00:00:00 2001 From: mzeros Date: Sat, 2 Nov 2024 15:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E8=B0=83=E6=8E=A5=E5=8F=A3=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/notify_api/route/index.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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'); } }