feat(player): 注册账号、登录双模式与移动端性能优化
注册必填 7-32 位账号,手机号区号/本地号分存;登录默认账号模式并支持切换手机号登录;Player i18n 拆包与赛事接口优化。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -238,8 +238,18 @@ export class BetsService {
|
||||
return bet;
|
||||
}
|
||||
|
||||
async getUserBets(userId: bigint, status?: string, page = 1, pageSize = 20) {
|
||||
const where = { userId, ...(status ? { status } : {}) };
|
||||
async getUserBets(
|
||||
userId: bigint,
|
||||
status?: string,
|
||||
page = 1,
|
||||
pageSize = 20,
|
||||
matchId?: bigint,
|
||||
) {
|
||||
const where = {
|
||||
userId,
|
||||
...(status ? { status } : {}),
|
||||
...(matchId ? { selections: { some: { matchId } } } : {}),
|
||||
};
|
||||
const skip = (page - 1) * pageSize;
|
||||
const [items, total] = await Promise.all([
|
||||
this.prisma.bet.findMany({
|
||||
|
||||
Reference in New Issue
Block a user