durong лет назад: 5
Родитель
Сommit
ec0b17b32e
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      app/Repositories/Behavior/BehaviorRepository.php

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

@@ -22,13 +22,13 @@ class BehaviorRepository
         $this->behavior = $behavior;
         //初始化virus域名
         $this->client = new Client([
-            'base_url' => config('constants.VIRUS_URL'),
+//            'base_url' => config('constants.VIRUS_URL'),
             'timeout' => 3
         ]);
     }
 
     public function index($request)
-    {var_dump($this->client);die;
+    {
         try {
             $signKey = [
                 'app' => config('constants.VIRUS_APP_ID')
@@ -37,7 +37,7 @@ class BehaviorRepository
             $signKey = urldecode(http_build_query($signKey));
             $sign = md5(config('constants.VIRUS_APP_SECRET') . $signKey);
 
-            $response = $this->client->request('GET', 'behaviorList', [
+            $response = $this->client->request('GET', 'https://api.dev.caihongxingqiu.com/virus/behaviorList', [
                 'headers' => [
                     'Content-Type' => 'application/json',
                     'app' => config('constants.VIRUS_APP_ID'),