xielin 5 yıl önce
ebeveyn
işleme
0f088677a9

+ 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']);