修复豹子号5,30不显示中大奖的问题

This commit is contained in:
2026-03-07 15:27:52 +08:00
parent 4cf0da8092
commit 1de9af703a
3 changed files with 62 additions and 14 deletions

View File

@@ -21,7 +21,7 @@ use think\model\relation\BelongsTo;
* @property $player_id 玩家id
* @property $lottery_config_id 彩金池配置
* @property $lottery_type 抽奖类型
* @property $is_win 是否中大奖:豹子号[1,1,1,1,1]~[5,5,5,5,5]为1否则0
* @property $is_win 是否中大奖:豹子号[1,1,1,1,1]~[6,6,6,6,6]为1否则0
* @property $win_coin 赢取平台币(= super_win_coin + reward_win_coin
* @property $super_win_coin 中大奖平台币(豹子时发放)
* @property $reward_win_coin 摇色子中奖平台币
@@ -115,8 +115,8 @@ class DicePlayRecord extends BaseModel
}
/**
* 是否豹子号中大奖5 个点数相同且为 1~5 之一
* @param int[] $rollArray 摇取点数数组,如 [1,1,1,1,1]
* 是否豹子号中大奖5 个点数相同且为 1~6 之一(含 [6,6,6,6,6]
* @param int[] $rollArray 摇取点数数组,如 [1,1,1,1,1] 或 [6,6,6,6,6]
* @return bool
*/
public static function isSuperWin(array $rollArray): bool
@@ -129,7 +129,7 @@ class DicePlayRecord extends BaseModel
return false;
}
$value = reset($unique);
return in_array($value, [1, 2, 3, 4, 5], true);
return in_array($value, [1, 2, 3, 4, 5, 6], true);
}
/** 是否中大奖 */