|
@@ -22,7 +22,7 @@ class BehaviorRepository
|
|
$this->behavior = $behavior;
|
|
$this->behavior = $behavior;
|
|
//初始化virus域名
|
|
//初始化virus域名
|
|
$this->client = new Client([
|
|
$this->client = new Client([
|
|
-// 'base_url' => config('constants.VIRUS_URL'),
|
|
|
|
|
|
+ 'base_uri' => config('constants.VIRUS_URL'),
|
|
'timeout' => 3
|
|
'timeout' => 3
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
@@ -37,7 +37,7 @@ class BehaviorRepository
|
|
$signKey = urldecode(http_build_query($signKey));
|
|
$signKey = urldecode(http_build_query($signKey));
|
|
$sign = md5(config('constants.VIRUS_APP_SECRET') . $signKey);
|
|
$sign = md5(config('constants.VIRUS_APP_SECRET') . $signKey);
|
|
|
|
|
|
- $response = $this->client->request('GET', 'https://api.dev.caihongxingqiu.com/virus/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('constants.VIRUS_APP_ID'),
|