wzq 5 years ago
parent
commit
a3a11d664a
2 changed files with 3 additions and 3 deletions
  1. 2 2
      app/Console/Commands/VirusAdd.php
  2. 1 1
      config/customer.tpl

+ 2 - 2
app/Console/Commands/VirusAdd.php

@@ -130,6 +130,7 @@ class VirusAdd extends Command
             $json = [];
             if($data['behavior_flag'] == 'publish'){
                 $json = [
+                    'sign' => $sign,
                     'app_id' => config('customer.VIRUS_APP_ID'),
                     'behavior_id' => $data['behavior_id'],
                     'behavior_flag' => $data['behavior_flag'],
@@ -146,8 +147,7 @@ class VirusAdd extends Command
 
             $response = $this->client->request('POST', 'v2/record/add', [
                 'headers' => [
-                    'Content-Type' => 'application/json',
-                    'sign' => $sign
+                    'Content-Type' => 'application/json'
                 ],
                 'json' => $json
             ]);

+ 1 - 1
config/customer.tpl

@@ -5,5 +5,5 @@ return [
     'manage_service_url' => '{manage_service_url}',
     'VIRUS_URL' => '{VIRUS_URL}',
     'VIRUS_APP_ID' => '{VIRUS_APP_ID}',
-    'VIRUS_APP_SECRET ' => '{VIRUS_APP_SECRET}',
+    'VIRUS_APP_SECRET' => '{VIRUS_APP_SECRET}',
 ];