From 9fddcf166c03f9085eca8aa128db59addfef1338 Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Mon, 13 May 2019 10:14:18 +0800 Subject: [PATCH] 1 --- webapp/controller/QuestController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/QuestController.class.php b/webapp/controller/QuestController.class.php index 7028762..584e06d 100644 --- a/webapp/controller/QuestController.class.php +++ b/webapp/controller/QuestController.class.php @@ -302,7 +302,6 @@ class QuestController{ } //发奖励 - $reward = $q['gold']; if ($quest_type == 0) { $t = $this->getTaskReward($quest_id); if (!$t) { @@ -319,6 +318,7 @@ class QuestController{ for ($i = 0; $i < count($weight_array); $i++) { $weight_sum += $weight_array[$i][0]; } + $random = Rand(0, $weight_sum); $weight = 0; for ($i = 0; $i < count($weight_array); $i++) {