소스 검색

update: fix

tokumeikoi 3 년 전
부모
커밋
43f4ecce93
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      app/Services/ServerService.php

+ 4 - 4
app/Services/ServerService.php

@@ -156,7 +156,7 @@ class ServerService
         return $json;
         return $json;
     }
     }
 
 
-    private function setDns(Server $server, object $json)
+    private function setDns(ServerV2ray $server, object $json)
     {
     {
         if ($server->dnsSettings) {
         if ($server->dnsSettings) {
             $dns = $server->dnsSettings;
             $dns = $server->dnsSettings;
@@ -169,7 +169,7 @@ class ServerService
         }
         }
     }
     }
 
 
-    private function setNetwork(Server $server, object $json)
+    private function setNetwork(ServerV2ray $server, object $json)
     {
     {
         if ($server->networkSettings) {
         if ($server->networkSettings) {
             switch ($server->network) {
             switch ($server->network) {
@@ -198,7 +198,7 @@ class ServerService
         }
         }
     }
     }
 
 
-    private function setRule(Server $server, object $json)
+    private function setRule(ServerV2ray $server, object $json)
     {
     {
         $domainRules = array_filter(explode(PHP_EOL, config('v2board.server_v2ray_domain')));
         $domainRules = array_filter(explode(PHP_EOL, config('v2board.server_v2ray_domain')));
         $protocolRules = array_filter(explode(PHP_EOL, config('v2board.server_v2ray_protocol')));
         $protocolRules = array_filter(explode(PHP_EOL, config('v2board.server_v2ray_protocol')));
@@ -238,7 +238,7 @@ class ServerService
         }
         }
     }
     }
 
 
-    private function setTls(Server $server, object $json)
+    private function setTls(ServerV2ray $server, object $json)
     {
     {
         if ((int)$server->tls) {
         if ((int)$server->tls) {
             $tlsSettings = $server->tlsSettings;
             $tlsSettings = $server->tlsSettings;