Some checks failed
lotteryfront CI / build (push) Has been cancelled
- Improved the entry lifecycle management to prevent duplicate token requests and ensure smooth transitions. - Updated the `resolvePostMessageTargetOrigin` function to return null when no allowed origins are present, enhancing security. - Cached runtime origins to optimize performance and reduce unnecessary API calls. - Added a new error message for frozen lottery wallets in the player notifications.
1.1 KiB
1.1 KiB
This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ before writing any code. Heed deprecation notices.
Learned User Preferences
- 玩家端信用盘文案与钱包盘区分:不用「派彩」口径,中奖走账期结算语义;提示语避免生硬重复「信用盘」字样。
Learned Workspace Facts
- 信用盘流水对外类型:
win_credit(中奖释额)、bill_settlement(账期收付),与钱包prize/派彩文案分离。 - 信用流水结余:
game_settlement_win/settlement_confirm/bet_hold_release会减used_credit并倒推结余;settlement_payout(账期收付)仅记账,affects_available_credit: false。 - Token 进场(
EntryGate):entryLifecycleRef(idle→running→done)防 URL token 剥离或 store 写入后重复触发doEntry导致成功/失败页闪现;成功后直接router.replace('/hall')。