Explorar el Código

fix(shareProsperity): 修正任务分配金额计算

- 调整用户192的金额从1280元至1680元
- 将多个用户的固定金额改为统一的28.57元标准
- 更新金钱分配数组中的数值配置
- 修正金额计算精度问题确保数据准确性
shichen hace 3 meses
padre
commit
0fcfcfc69c
Se han modificado 1 ficheros con 10 adiciones y 10 borrados
  1. 10 10
      app/controller/api/shareProsperity/Task.php

+ 10 - 10
app/controller/api/shareProsperity/Task.php

@@ -474,15 +474,15 @@ class Task
474 474
         // 李玉芝 238元,
475 475
         // 其他5人,每人68元
476 476
         $userData = [
477
-            192 => 1280,
477
+            192 => 1680,
478 478
             62 => 380,
479
-            43 => 158,
480
-            2393 => 238,
481
-            3 => 58,
482
-            4001 => 58,
483
-            4073 => 58,
484
-            2540 => 58,
485
-            4899 => 58,
479
+            43 => 28.57,
480
+            2393 => 28.57,
481
+            3 => 28.57,
482
+            4001 => 28.57,
483
+            4073 => 28.57,
484
+            2540 => 28.57,
485
+            4899 => 28.57,
486 486
         ];
487 487
 
488 488
         foreach ($userData as $uid => $money) {
@@ -579,10 +579,10 @@ class Task
579 579
         ];
580 580
         $money = [
581 581
             1 => 1.86,
582
-            2 => 3.73,
582
+            2 => 3.64,
583 583
             3 => 9.52,
584 584
             4 => 17.5,
585
-            5 => 22.22,
585
+            5 => 28.57,
586 586
         ];
587 587
         $groupUser = Db::name('shared_prosperity_user')->where('partner_level', $level)->select()->toArray();
588 588
         $userData = array_column($groupUser, 'user_id');