用户状态接口增加gameId和gameMail字段, 用于表示统一的游戏账户id
This commit is contained in:
parent
a1f4920ebd
commit
6e5d275f1e
@ -65,7 +65,7 @@
|
||||
2. 增加两种任务类型: GoogleConnect, GameAchievement
|
||||
|
||||
#### 20240514
|
||||
1. 用户状态(10) 增加返回emailId, email
|
||||
1. 用户状态(10) 增加返回emailId, email, gameId, gameMail
|
||||
2. 增加接口: 发送邮件验证码(33), 验证邮件地址(34)
|
||||
|
||||
### 1. 钱包预登录
|
||||
@ -373,6 +373,8 @@ body:
|
||||
"mapopen": 0, // 地图开启状态, 0: 未开启, 1: 已开启
|
||||
"enhanceCount": 1, // 当日剩余助力次数
|
||||
"inWhiteList": 1, // 是否得到白名单
|
||||
"gameId": '111', // 游戏帐号绑定的id, 优先取googleId
|
||||
"gameMail": '', // 游戏帐号绑定的email, 优先取gmail
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -169,6 +169,8 @@ class SignController extends BaseController {
|
||||
gameTicket: ingameStat.ticket,
|
||||
emailId: user.emailId,
|
||||
email: user.email,
|
||||
gameId: user.gameId(),
|
||||
gameMail: user.gameMail(),
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
@ -152,6 +152,13 @@ export class ActivityUserClass extends BaseModule {
|
||||
public gameAccountBinded() {
|
||||
return this.googleId || this.emailId
|
||||
}
|
||||
|
||||
public gameId() {
|
||||
return this.googleId || this.emailId
|
||||
}
|
||||
public gameMail() {
|
||||
return this.googleEmail || this.email
|
||||
}
|
||||
}
|
||||
|
||||
export const ActivityUser = getModelForClass(ActivityUserClass, { existingConnection: ActivityUserClass.db })
|
||||
|
Loading…
x
Reference in New Issue
Block a user