2
0
Tree 3 viikkoa sitten
vanhempi
sitoutus
9235f51687

+ 4 - 4
app/Console/Commands/SuperballUpdatePoolAndStats.php

@@ -48,7 +48,7 @@ class SuperballUpdatePoolAndStats extends Command
                 : 0;
 
             // 奖池 = 总流水的 1/10(内部单位),向下取整
-            $poolAmount = (int)floor($flowing / 10);
+            $poolAmount = (int)floor($flowing / 4);
 
             // 2. 确保当日 superball_daily 记录存在
             DB::connection('write')->transaction(function () use ($dateStr, $poolAmount, $today) {
@@ -71,12 +71,12 @@ class SuperballUpdatePoolAndStats extends Command
 
                 if ($hour < 1) {
                     // 00:00 - 00:59
-                    $completedInc = mt_rand(3, 10);
+                    $completedInc = mt_rand(5, 10);
                     $multipliers = [1, 2, 3, 6];
                 } else {
                     // 01:00 以后
-                    $completedInc = mt_rand(7, 20);
-                    $multipliers = [1, 2, 3, 6, 15];
+                    $completedInc = mt_rand(10, 20);
+                    $multipliers = [3,6,10,30];
                 }
 
                 $multiplier = $multipliers[array_rand($multipliers)];

+ 6 - 3
app/Http/Controllers/Game/ActivityController.php

@@ -689,7 +689,8 @@ class ActivityController extends Controller
 //                'title' => '阶段任务3(循环任务)',
                 'title' => __('messages.web.vip_task.stage3_title'), // 阶段任务3(循环任务)
 
-                'reward' => $taskConfig['stage3']['tasks'][0]['reward'] ?? 20,
+                // 根据循环次数判断奖励:第一次(loop_count=0或不存在)奖励20,之后每次10
+                'reward' => (($taskData['stage3_loop_count'] ?? 0) == 0) ? 20 : 10,
                 'unlocked' => $taskData['stage2_completed'],
                 'completed' => ($taskData['stage3_task1'] ?? false) && ($taskData['stage3_task2'] ?? false),
                 'reward_status' => $stage3_reward_status,
@@ -806,12 +807,14 @@ class ActivityController extends Controller
                     return apiReturnFail(['web.vip_task.task_not_completed', __('messages.web.vip_task.task_not_completed')]); // 任务未完成
                 }
                 
-                $rewardAmount = 20;
+                // 根据循环次数判断奖励:第一次(loop_count=0或不存在)奖励20,之后每次10
+                $currentLoopCount = $taskData['stage3_loop_count'] ?? 0;
+                $rewardAmount = ($currentLoopCount == 0) ? 20 : 10;
                 
                 // 领取后刷新任务:充值目标+100,下注目标+1000
                 $newRechargeTarget = $rechargeTarget + 100;
                 $newBetTarget = $betTarget + 1000;
-                $newLoopCount = ($taskData['stage3_loop_count'] ?? 0) + 1;
+                $newLoopCount = $currentLoopCount + 1;
                 
                 // 更新任务数据
                 $redisKey = "vip_withdraw_task_{$userId}";

+ 4 - 1
app/Http/logic/admin/WithdrawalLogic.php

@@ -413,7 +413,10 @@ class WithdrawalLogic extends BaseLogicController
 
                     $state = 5;
                     # 获取哪个三方提现
-                    $orderAgent = $WithdrawalModel->getAgentChannel($agent);
+//                    $orderAgent = $WithdrawalModel->getAgentChannel($agent);
+                    $agentID = DB::connection('write')->table('agent.dbo.admin_configs')->where('config_value', strval($agent))
+                        ->select('id')->first()->id ?? '';
+                    $orderAgent = strval($agentID);
                     // 改变状态处理中
                     DB::table('QPAccountsDB.dbo.OrderWithDraw')->where('RecordID', $val)->update(['State' => $state, 'agent' => $orderAgent]);
 

+ 2 - 2
app/Models/Withdrawal.php

@@ -78,8 +78,8 @@ class Withdrawal
 //        if (!$first) return false;
 
         // 验证不支持的CNPJ
-        $PixNumLength = strlen($PixNum);
-        if ($PixNumLength == 14 && in_array($agent, [5])) return false;
+//        $PixNumLength = strlen($PixNum);
+//        if ($PixNumLength == 14 && in_array($agent, [5])) return false;
         return true;
     }