durong 5 anni fa
parent
commit
0c66374947
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      app/Repositories/Behavior/BehaviorRepository.php

+ 5 - 5
app/Repositories/Behavior/BehaviorRepository.php

@@ -38,7 +38,7 @@ class BehaviorRepository
         $this->releaseRecord = $releaseRecord;
         //初始化virus域名
         $this->client = new Client([
-            'base_uri' => config('constants.VIRUS_URL'),
+            'base_uri' => config('customer.VIRUS_URL'),
             'timeout' => 3
         ]);
     }
@@ -47,16 +47,16 @@ class BehaviorRepository
     {
         try {
             $signKey = [
-                'app' => config('constants.VIRUS_APP_ID')
+                'app' => config('customer.VIRUS_APP_ID')
             ];
             ksort($signKey);
             $signKey = urldecode(http_build_query($signKey));
-            $sign = md5(config('constants.VIRUS_APP_SECRET') . $signKey);
+            $sign = md5(config('customer.VIRUS_APP_SECRET') . $signKey);
 
-            $response = $this->client->request('GET', 'behaviorList', [
+            $response = $this->client->request('GET', '/behaviorList', [
                 'headers' => [
                     'Content-Type' => 'application/json',
-                    'app' => config('constants.VIRUS_APP_ID'),
+                    'app' => config('customer.VIRUS_APP_ID'),
                     'sign' => $sign
                 ]
             ]);