|
@@ -180,6 +180,17 @@ class VirusAdd extends Command
|
|
'action_id' => (string) $data['action_id'],
|
|
'action_id' => (string) $data['action_id'],
|
|
'extra' => [],
|
|
'extra' => [],
|
|
];
|
|
];
|
|
|
|
+ }elseif($data['behavior_flag'] == 'register'){
|
|
|
|
+ $json = [
|
|
|
|
+ 'sign' => $sign,
|
|
|
|
+ 'app_id' => config('customer.VIRUS_APP_ID'),
|
|
|
|
+ 'behavior_id' => $data['behavior_id'],
|
|
|
|
+ 'behavior_flag' => $data['behavior_flag'],
|
|
|
|
+ 'source_id' => $data['source_id'],
|
|
|
|
+ 'target_id' => (string) $data['target_id'],
|
|
|
|
+ 'action_id' => (string) $data['action_id'],
|
|
|
|
+ 'extra' => [],
|
|
|
|
+ ];
|
|
}else{
|
|
}else{
|
|
Log::debug('行为类型错误'.json_encode($data));
|
|
Log::debug('行为类型错误'.json_encode($data));
|
|
return true;
|
|
return true;
|