下分数据 money改为string

This commit is contained in:
DESKTOP-45ANQ2C\unis 2024-12-25 13:55:45 +08:00
parent e32a8f0adc
commit 3c4fc64882
2 changed files with 3 additions and 3 deletions

View File

@ -286,7 +286,7 @@ type PlatfromDownScoreReq struct {
type PlatfromDownScoreRsp struct {
Code int `json:"code"`
Data struct {
Money int64 `json:"money"`
Money string `json:"money"`
} `json:"data"`
Message string `json:"message"`
Success bool `json:"success"`

View File

@ -3222,7 +3222,7 @@ func init() {
player.SendDiffData()
}
pack.Data.Money = -addcoin
pack.Data.Money = strconv.FormatInt(-addcoin, 10)
jsonDataRsp, err = json.Marshal(pack)
if err != nil {
@ -3292,7 +3292,7 @@ func init() {
pack.Message = data.(error).Error()
}
pack.Data.Money = -addcoin
pack.Data.Money = strconv.FormatInt(-addcoin, 10)
jsonDataRsp, err = json.Marshal(pack)
if err != nil {