Explorar o código

Fix V2ray webapi 数据类型错误

兔姬桑 %!s(int64=3) %!d(string=hai) anos
pai
achega
529a6041ac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/Api/WebApi/V2RayController.php

+ 1 - 1
app/Http/Controllers/Api/WebApi/V2RayController.php

@@ -28,7 +28,7 @@ class V2RayController extends CoreController
             'key'             => $cert ? $cert->key : '',
             'pem'             => $cert ? $cert->pem : '',
             'v2_license'      => (string) sysConfig('v2ray_license'),
-            'v2_alter_id'     => $node->profile['v2_alter_id'] ?? '',
+            'v2_alter_id'     => (int) $node->profile['v2_alter_id'],
             'v2_port'         => $node->port,
             'v2_method'       => $node->profile['v2_method'] ?? '',
             'v2_net'          => $node->profile['v2_net'] ?? '',