diff --git a/webapi/deprecated.go b/webapi/deprecated.go index 1b033d1..2c16357 100644 --- a/webapi/deprecated.go +++ b/webapi/deprecated.go @@ -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"` } // 查询游戏状态返回 diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index ea5d1d6..4e6a0a5 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -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 {