zhangchangchun 5 yıl önce
ebeveyn
işleme
f582aaadde
1 değiştirilmiş dosya ile 11 ekleme ve 0 silme
  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;