laowu 1 день назад
Родитель
Сommit
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) {