Tree 19 ساعت پیش
والد
کامیت
4acc2d4ae9
2فایلهای تغییر یافته به همراه16 افزوده شده و 10 حذف شده
  1. 5 6
      app/Console/Commands/ExemptReview.php
  2. 11 4
      app/Console/Commands/SuperballUpdatePoolAndStats.php

+ 5 - 6
app/Console/Commands/ExemptReview.php

@@ -133,19 +133,18 @@ class ExemptReview extends Command
             if (true) {
             if (true) {
 
 
                 if($value->PixType == 2){
                 if($value->PixType == 2){
-                    rand(1,100)>70?$agent = 99:$agent = 105;
-//                    $agent=99;
+                    rand(1,100)>60?$agent = 105:$agent = 100;
+                    $agent = 100;
                 }else{
                 }else{
                     if(($value->WithDraw/NumConfig::NUM_VALUE)<55){
                     if(($value->WithDraw/NumConfig::NUM_VALUE)<55){
-                        $agent = 99;
+                        Log::info('小额不免审了:'.$value->OrderId);
+                        continue;
                     }else{
                     }else{
-//                        rand(1,100)>30?$agent = 99:$agent = 101;
+                        rand(1,100)>50?$agent = 100:$agent = 105;
                         $agent = 105;
                         $agent = 105;
                     }
                     }
                 }
                 }
 
 
-//                $agent = 99;
-
                 $redis = Redis::connection();
                 $redis = Redis::connection();
                 $order_sn = $value->OrderId;
                 $order_sn = $value->OrderId;
                 if ($redis->exists($order_sn.'key1')) {
                 if ($redis->exists($order_sn.'key1')) {

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

@@ -58,14 +58,19 @@ class SuperballUpdatePoolAndStats extends Command
                 // 3. 计算本次要增加的 completed_count 和 total_balls
                 // 3. 计算本次要增加的 completed_count 和 total_balls
                 $hour = (int)$today->format('G'); // 0-23
                 $hour = (int)$today->format('G'); // 0-23
 
 
-                if ($hour < 1) {
+                $hour = intval(date('H'));
+                if ($hour < 2) {
                     // 00:00 - 00:59
                     // 00:00 - 00:59
                     $completedInc = mt_rand(5, 10);
                     $completedInc = mt_rand(5, 10);
                     $multipliers = [1, 2, 3, 6];
                     $multipliers = [1, 2, 3, 6];
+                } else if($hour<=10){
+                    // 01:00 以后
+                    $completedInc = mt_rand(10, 15);
+                    $multipliers = [6,10];
                 } else {
                 } else {
                     // 01:00 以后
                     // 01:00 以后
-                    $completedInc = mt_rand(10, 20);
-                    $multipliers = [8,25];
+                    $completedInc = mt_rand(15, 20);
+                    $multipliers = [10,15];
                 }
                 }
 
 
                 $multiplier = $multipliers[array_rand($multipliers)];
                 $multiplier = $multipliers[array_rand($multipliers)];
@@ -79,9 +84,11 @@ class SuperballUpdatePoolAndStats extends Command
                         'total_balls' => DB::raw("total_balls + {$ballsInc}"),
                         'total_balls' => DB::raw("total_balls + {$ballsInc}"),
                         'updated_at' => now()->format('Y-m-d H:i:s'),
                         'updated_at' => now()->format('Y-m-d H:i:s'),
                     ]);
                     ]);
+
+                \Log::info("Superball pool ###$completedInc###$ballsInc");
             });
             });
 
 
-            \Log::info("Superball pool stats updated for {$dateStr}, pool_amount={$poolAmount}");
+            \Log::info("Superball pool stats updated for {$dateStr}, pool_amount={$poolAmount}"."--");
             return true;
             return true;
         } catch (\Throwable $e) {
         } catch (\Throwable $e) {
             \Log::error('Superball update pool stats failed: ' . $e->getMessage());
             \Log::error('Superball update pool stats failed: ' . $e->getMessage());