Browse Source

取消返回绑定的动作ID

durong 5 years ago
parent
commit
271c3b70eb

+ 0 - 1
app/Http/Controllers/Behavior/BehaviorController.php

@@ -55,7 +55,6 @@ class BehaviorController extends Controller
                 'name',
                 'behavior_level',
                 'behavior_cycle_type',
-                'behavior_action_id',
                 'behavior_cycle',
                 'behavior_binding_users',
                 'physical_strength',

+ 1 - 0
app/Repositories/Behavior/BehaviorRepository.php

@@ -75,6 +75,7 @@ class BehaviorRepository
 
         foreach ($registered_bahaviors as $key => $val) {
             $registered_bahaviors[$key]['behavior_status'] = 1;//已登记
+            unset($registered_bahaviors[$key]['behavior_action_id']);
         }
         $virus_behavior_id = array_column($registered_bahaviors, 'virus_behavior_id');