zhangchangchun 5 年之前
父節點
當前提交
f582aaadde
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      app/Console/Commands/VirusAdd.php

+ 11 - 0
app/Console/Commands/VirusAdd.php

@@ -180,6 +180,17 @@ class VirusAdd extends Command
                     'action_id' => (string) $data['action_id'],
                     '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{
                 Log::debug('行为类型错误'.json_encode($data));
                 return true;