Tree hace 10 horas
padre
commit
2c3a4151c2
Se han modificado 1 ficheros con 7 adiciones y 7 borrados
  1. 7 7
      app/Http/Controllers/Game/ExtensionsController.php

+ 7 - 7
app/Http/Controllers/Game/ExtensionsController.php

@@ -102,14 +102,14 @@ class ExtensionsController
             $turnplate = [
                 'times' => $activity->NewTimes+$activity->OldTimes,
                 'countdown' => $activity->Created+86400*3-time(),
-                'total_amount' => 4000,
+                'total_amount' => 20000,
                 'collect_amount' => intval($activity->Amount)
             ];
         }else{
             $turnplate = [
                 'times' => 1,
                 'countdown' => 86400*3,
-                'total_amount' => 4000,
+                'total_amount' => 20000,
                 'collect_amount' => 0
             ];
             $insert = 1;
@@ -184,7 +184,7 @@ class ExtensionsController
             if($userInfo) {
                 $nickname = $userInfo->NickName;
                 foreach ($myRecordList as $itemM) {
-                    $myRecord[] = ['phone' => $myInfo ?: '', 'name' => $nickname, 'amount' => 40];
+                    $myRecord[] = ['phone' => $myInfo ?: '', 'name' => $nickname, 'amount' => 200];
                 }
             }
         }
@@ -194,7 +194,7 @@ class ExtensionsController
         } else{
             $record = [];
             for($i=0;$i<50;$i++){
-                $record[] = ['phone' => rand(1234, 9876) . '' . rand(1234, 9876) . '' . rand(12, 98), 'name' => rand(1, 100) > 10 ? $dao->randUserName('') : 'U' . rand(1234, 9876), 'amount' => rand(40,2000)];
+                $record[] = ['phone' => rand(1234, 9876) . '' . rand(1234, 9876) . '' . rand(12, 98), 'name' => rand(1, 100) > 10 ? $dao->randUserName('') : 'U' . rand(1234, 9876), 'amount' => rand(200,2000)];
 
             }
 
@@ -251,14 +251,14 @@ class ExtensionsController
         }
 
         if($activity->TotalKan == 0){
-            $result = rand(3000,3600);
+            $result = rand(16000,17500);
             $type = 2;
         }else{
             $type=1;
             $result = 0;
         }
 
-        DB::connection('write')->table('agent.dbo.ActivityTurnplate')->where('UserID', $UserID)->update(['NewTimes'=> $newTimes?$activity->NewTimes-1:$activity->NewTimes,'OldTimes'=> (!$newTimes)?$activity->OldTimes-1:$activity->OldTimes,'Amount' => $money+$result,'State' =>$money+$result>=4000?1:0,'TotalKan' => $activity->TotalKan+1 ]);
+        DB::connection('write')->table('agent.dbo.ActivityTurnplate')->where('UserID', $UserID)->update(['NewTimes'=> $newTimes?$activity->NewTimes-1:$activity->NewTimes,'OldTimes'=> (!$newTimes)?$activity->OldTimes-1:$activity->OldTimes,'Amount' => $money+$result,'State' =>$money+$result>=20000?1:0,'TotalKan' => $activity->TotalKan+1 ]);
         SetNXLock::release($redisKey);
         return apiReturnSuc(['type' => $type,'bonus' => $result,'times' => $oldTimes+$newTimes-1,'collect_amount' => intval($money+$result)]);
 
@@ -284,7 +284,7 @@ class ExtensionsController
         }
 
         $exchangeScore = intval($activity->Amount ?? 0);
-        if ($exchangeScore < 4000) {
+        if ($exchangeScore < 20000) {
             SetNXLock::release($redisKey);
             return apiReturnFail(['web.turnplate.no_amount','No reward can be collected now']);
         }