This commit is contained in:
wangwei01 2019-05-13 10:14:18 +08:00
parent c212d25976
commit 9fddcf166c

View File

@ -302,7 +302,6 @@ class QuestController{
} }
//发奖励 //发奖励
$reward = $q['gold'];
if ($quest_type == 0) { if ($quest_type == 0) {
$t = $this->getTaskReward($quest_id); $t = $this->getTaskReward($quest_id);
if (!$t) { if (!$t) {
@ -319,6 +318,7 @@ class QuestController{
for ($i = 0; $i < count($weight_array); $i++) { for ($i = 0; $i < count($weight_array); $i++) {
$weight_sum += $weight_array[$i][0]; $weight_sum += $weight_array[$i][0];
} }
$random = Rand(0, $weight_sum); $random = Rand(0, $weight_sum);
$weight = 0; $weight = 0;
for ($i = 0; $i < count($weight_array); $i++) { for ($i = 0; $i < count($weight_array); $i++) {