上分下分 timestamp修改为string类型
This commit is contained in:
parent
d223ee3845
commit
55bec9ba84
|
@ -244,7 +244,7 @@ type PlatfromCreateAccountReq struct {
|
|||
Channel string `json:"channel"`
|
||||
Nickname string `json:"nickname"`
|
||||
Avatar string `json:"Avatar"`
|
||||
Timestamp int64 `json:"timestamp"`
|
||||
Timestamp string `json:"timestamp"`
|
||||
}
|
||||
|
||||
// 平台登录返回
|
||||
|
@ -261,7 +261,7 @@ type PlatfromGameLoginRsp struct {
|
|||
type PlatfromUpScoreReq struct {
|
||||
Username string `json:"username"`
|
||||
Channel string `json:"channel"`
|
||||
Timestamp int64 `json:"timestamp"`
|
||||
Timestamp string `json:"timestamp"`
|
||||
Count string `json:"count"`
|
||||
}
|
||||
|
||||
|
@ -279,7 +279,7 @@ type PlatfromUpScoreRsp struct {
|
|||
type PlatfromDownScoreReq struct {
|
||||
Username string `json:"username"`
|
||||
Channel string `json:"channel"`
|
||||
Timestamp int64 `json:"timestamp"`
|
||||
Timestamp string `json:"timestamp"`
|
||||
}
|
||||
|
||||
// 下分返回
|
||||
|
@ -296,7 +296,7 @@ type PlatfromDownScoreRsp struct {
|
|||
type PlatfromPlayerStatusReq struct {
|
||||
Username string `json:"username"`
|
||||
Channel string `json:"channel"`
|
||||
Timestamp int64 `json:"timestamp"`
|
||||
Timestamp string `json:"timestamp"`
|
||||
}
|
||||
|
||||
// 查询游戏状态返回
|
||||
|
|
|
@ -2914,8 +2914,14 @@ func init() {
|
|||
|
||||
pack.Data.Url = fmt.Sprintf("%s?login_token=%s", model.GameParamData.PlatformClientAddr, tokenStr)
|
||||
|
||||
timeStamp, err := strconv.ParseInt(AccountInfo.Timestamp, 10, 64)
|
||||
if err != nil {
|
||||
logger.Logger.Errorf("/api/platform/createUser strconv.ParseInt err:%v", err)
|
||||
return common.ResponseTag_ParamError, jsonDataRsp
|
||||
}
|
||||
|
||||
task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} {
|
||||
acc, retCode := model.AccountIsExist(AccountInfo.Username, "", "", "1", AccountInfo.Timestamp,
|
||||
acc, retCode := model.AccountIsExist(AccountInfo.Username, "", "", "1", timeStamp,
|
||||
common.LoginTypePlatformToken, 0, false, false)
|
||||
|
||||
switch retCode {
|
||||
|
|
Loading…
Reference in New Issue