Explorar o código

LinkCode length

laowu hai 2 días
pai
achega
00b7a0ddb0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Game/Services/AgentService.php

+ 1 - 1
app/Game/Services/AgentService.php

@@ -79,7 +79,7 @@ class AgentService
         $agentUser=AgentUser::create([
             'GlobalUID' => $GlobalUID,
             'UserID' => $UserID,
-            'LinkCode' => $code ?? '',
+            'LinkCode' => mb_substr($code ?? '', 0, 10),
             'Higher1GUID' => $higher1GUID,
             'Higher2GUID' => $higher2GUID,
             'Higher3GUID' => $higher3GUID,