|
|
@@ -378,6 +378,13 @@ class BetService extends BaseService
|
|
|
$randKey = array_rand($gameplayRuleList, 1);
|
|
|
$gameplayRuleInfo = $gameplayRuleList[$randKey] ?? [];
|
|
|
if ($gameplayRuleInfo) {
|
|
|
+ if($gameplayRuleInfo['maxinum'] < $betMax){
|
|
|
+ $betMax = $gameplayRuleInfo['maxinum'];
|
|
|
+ }
|
|
|
+ if($gameplayRuleInfo['mininum'] > $betMini){
|
|
|
+ $betMini = $gameplayRuleInfo['mininum'];
|
|
|
+ }
|
|
|
+
|
|
|
$amount = rand($betMini, $betMax);
|
|
|
$amount = floor($amount / 10) * 10;
|
|
|
$input = $gameplayRuleInfo['keywords'] . $amount;
|