Преглед на файлове

fix superball tier reward2

laowu преди 1 месец
родител
ревизия
5acd027442
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      app/Services/SuperballActivityService.php

+ 3 - 3
app/Services/SuperballActivityService.php

@@ -334,7 +334,7 @@ class SuperballActivityService
         if ($complete) {
             $ballCount = $tierConfig->ball_count;
         } else if ($tierConfig->tier !== 'E') { // 没完成获取上一级奖励
-            $idx = $tierConfig->sort_index-1;
+            $idx = $tierConfig->sort_index+1;
             $configs = $this->getTierConfig();
             foreach ($configs as $config) {
                 if ($config['sort_index'] == $idx) {
@@ -411,7 +411,7 @@ class SuperballActivityService
             if ($task->complete == 1) {
                 $ballCount = $tierConfig->ball_count;
             } else if ($tierConfig->tier !== 'E') { // 没完成获取上一级奖励
-                $idx = $tierConfig->sort_index-1;
+                $idx = $tierConfig->sort_index+1;
                 $configs = $this->getTierConfig();
                 foreach ($configs as $config) {
                     if ($config['sort_index'] == $idx) {
@@ -655,7 +655,7 @@ class SuperballActivityService
             if ($task->complete) {
                 $ball = $config->ball_count;
             } else if ($task->tier != 'E') {
-                $idx = $config->sort_index-1;
+                $idx = $config->sort_index+1;
                 $configs = $this->getTierConfig();
                 foreach ($configs as $config) {
                     if ($config['sort_index'] == $idx) {