Browse Source

Fix V2ray Method read problem

兔姬桑 3 years ago
parent
commit
d9417dd109

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

@@ -30,7 +30,7 @@ class V2RayController extends CoreController
             'v2_license'      => (string) sysConfig('v2ray_license'),
             'v2_alter_id'     => (int) $node->profile['v2_alter_id'],
             'v2_port'         => $node->port,
-            'v2_method'       => $node->profile['v2_method'] ?? '',
+            'v2_method'       => $node->profile['method'] ?? '',
             'v2_net'          => $node->profile['v2_net'] ?? '',
             'v2_type'         => $node->profile['v2_type'] ?? '',
             'v2_host'         => $node->profile['v2_host'] ?? '',

+ 1 - 1
resources/views/admin/node/info.blade.php

@@ -492,7 +492,7 @@
           @case(2)
         //V2Ray
         $('#v2_alter_id').val('{{$node->profile['v2_alter_id'] ?? null}}');
-        $('#v2_method').selectpicker('val', '{{$node->profile['v2_method'] ?? null}}');
+        $('#v2_method').selectpicker('val', '{{$node->profile['method'] ?? null}}');
         $('#v2_net').selectpicker('val', '{{$node->profile['v2_net'] ?? null}}');
         $('#v2_type').selectpicker('val', '{{$node->profile['v2_type'] ?? null}}');
         $('#v2_host').val('{{$node->profile['v2_host'] ?? null}}');