xielin 5 anni fa
parent
commit
4a98c80b4a
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. 0 4
      app/Repositories/BehaviorRecordRepositories.php

+ 0 - 4
app/Repositories/BehaviorRecordRepositories.php

@@ -100,7 +100,6 @@ class BehaviorRecordRepositories
             $this->registeredAccountsRecord->create($data);
             //修改行为统计数据
             $behavior = Behavior::where('virus_behavior_id',$register['virus_behavior_id'])->first();
-            $behavior->physical_strength += intval($register['physical_exertion']);
             $behavior->grant_rainbow_beans += intval($register['quantity_issued']);
             $behavior->trigger_times += 1;
             $behavior->absolute_progression += intval($register['absolute_progression']);
@@ -138,7 +137,6 @@ class BehaviorRecordRepositories
             $data['quantity_issued'] = $release['quantity_issued'];
             $this->releaseRecord->create($data);
             $behavior = Behavior::where('virus_behavior_id',$release['virus_behavior_id'])->first();
-            $behavior->physical_strength += intval($release['physical_exertion']);
             $behavior->grant_rainbow_beans += intval($release['quantity_issued']);
             $behavior->trigger_times += 1;
             if($release['trigger_type']){
@@ -176,7 +174,6 @@ class BehaviorRecordRepositories
             $data['behavior_value'] = $general['behavior_value'];
             $this->generalLedgerRecord->create($data);
             $behavior = Behavior::where('virus_behavior_id',$general['virus_behavior_id'])->first();
-            $behavior->physical_strength += intval($general['physical_exertion']);
             $behavior->grant_rainbow_beans += intval($general['quantity_issued']);
             $behavior->trigger_times += 1;
             if($general['trigger_type']){
@@ -216,7 +213,6 @@ class BehaviorRecordRepositories
             $data['superior_comment_id'] = $comment['superior_comment_id'];
             $this->commentAccountRecord->create($data);
             $behavior = Behavior::where('virus_behavior_id',$comment['virus_behavior_id'])->first();
-            $behavior->physical_strength += intval($comment['physical_exertion']);
             $behavior->grant_rainbow_beans += intval($comment['quantity_issued']);
             $behavior->trigger_times += 1;
             if($comment['trigger_type']){