瀏覽代碼

配置修改

durong 5 年之前
父節點
當前提交
0c66374947
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      app/Repositories/Behavior/BehaviorRepository.php

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

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