Browse Source

no message

PPPPPPP 1 month ago
parent
commit
2e856f8a46
1 changed files with 7 additions and 4 deletions
  1. 7 4
      app/Http/Controllers/Game/PgSimController.php

+ 7 - 4
app/Http/Controllers/Game/PgSimController.php

@@ -64,13 +64,14 @@ class PgSimController extends Controller
         $configurls=json_decode(env('CONFIG_GAMES'),true);
         $configurl=$configurls['pg'];
 
-        $host=$configurl['api'];
-
         $cdnserver = 'https://'.$configurl['source'];
         $sign = GlobalUserInfo::genGuuidSign($user);
         $or = $this->convertString($configurl['source']);
 
-        $api = $host;
+        $api = $configurl['api'];
+        if($userid==80000140){
+            $api="api.pgn-nmu2nd.com";
+        }
 //        $api = $this->convertString($this->GetApiSite());
 //        $api = $this->convertString('api.pgn-nmu2nd.com');
 
@@ -1035,7 +1036,9 @@ document.addEventListener("touchmove", (e) => {
 
         $api=$this->GetApiSite($GlobalUID);
 
-
+        if(ServerService::GlobalToUserID($GlobalUID)==80000140){
+            $api="api.pgn-nmu2nd.com";
+        }
         if(isset($sessions[$gameid])) {
             $obj = $sessions[$gameid];
             $obj['dt']['lm'] = $data['limit_room'];