1.优化接口返回中间信息ui_text(中文)ui_text_en(英文)
2.修复BUG色子点数权重配置-权重配比-顺时针/逆时针显示错误
This commit is contained in:
@@ -18,6 +18,7 @@ use support\think\Cache;
|
||||
* @property $id ID
|
||||
* @property $grid_number 色子点数
|
||||
* @property $ui_text 前端显示文本
|
||||
* @property $ui_text_en 前端显示文本(英文)
|
||||
* @property $real_ev 真实资金结算
|
||||
* @property $tier 所属档位
|
||||
* @property $weight 权重(仅 BIGWIN 使用,0-10000)
|
||||
@@ -65,6 +66,17 @@ class DiceRewardConfig extends BaseModel
|
||||
return $inst['list'] ?? [];
|
||||
}
|
||||
|
||||
public static function getCachedById(int $id): ?array
|
||||
{
|
||||
$list = self::getCachedList();
|
||||
foreach ($list as $row) {
|
||||
if (isset($row['id']) && (int) $row['id'] === $id) {
|
||||
return $row;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 重新从数据库加载并写入缓存(按档位+权重抽 grid_number,含 by_tier、by_tier_grid)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user