Sfoglia il codice sorgente

多站分享链接支持

Tree 2 giorni fa
parent
commit
f03d6476c6
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      app/Game/Services/AgentService.php

+ 9 - 0
app/Game/Services/AgentService.php

@@ -224,6 +224,15 @@ class AgentService
             }
         }
         $h5link = env('H5_LINK', 'https://www.usslot777.com/');
+
+
+        $httpserver = $_SERVER['HTTP_ORIGIN']
+            ?? ($_SERVER['HTTP_REFERER'] ?? $h5link);
+
+        $httpserver = rtrim($httpserver, '/');
+
+        $h5link = $httpserver.'/';
+
         if($ActName=='WheelFree100') {
             $link = $h5link .'?act='. self::encodeAct($GlobalUID, $ActName);
         }else{