Kaynağa Gözat

Merge branch 'tmp-master' into 20250120_dev

liugc 1 yıl önce
ebeveyn
işleme
7988a15045

+ 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];