|
@@ -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
|
|
]
|
|
]
|
|
]);
|
|
]);
|