فهرست منبع

Merge branch 'tmp-master' into 20250120_dev

liugc 1 سال پیش
والد
کامیت
ebcf23310a
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      app/common/http/middleware/LikeAdminAllowMiddleware.php

+ 3 - 3
app/common/http/middleware/LikeAdminAllowMiddleware.php

@@ -65,11 +65,11 @@ class LikeAdminAllowMiddleware
 
         // 获取租户信息
         $tenantModel = new Tenant();
-        //$domain = preg_replace('/^https?:\/\/|\/$/', '', $request->domain());
-        $domain = $request->header('my-origin-domain');
+        $domain = preg_replace('/^https?:\/\/|\/$/', '', $request->domain());
+        /*$domain = $request->header('my-origin-domain');
         if (empty($domain)) {
             return JsonService::fail('非法访问', [], 1001);
-        }
+        }*/
         $pathSegments = explode('/', $request->pathinfo());
         $firstSegment = $pathSegments[0];