xielin %!s(int64=5) %!d(string=hai) anos
pai
achega
0f088677a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Repositories/BehaviorRecordRepositories.php

+ 1 - 1
app/Repositories/BehaviorRecordRepositories.php

@@ -216,7 +216,7 @@ class BehaviorRecordRepositories
             $data['generation_quantity'] = $comment['generation_quantity'];
             $data['quantity_issued'] = $comment['quantity_issued'];
             $data['current_comment_id'] = $comment['current_comment_id'];
-            $data['superior_comment_id'] = $comment['parent_comment_id'];
+            $data['superior_comment_id'] = $comment['superior_comment_id'];
             $this->generalLedgerRecord->create($data);
             $behavior = Behavior::where('virus_behavior_id',$comment['virus_behavior_id'])->first();
             $behavior->physical_strength += intval($comment['physical_exertion']);