From 979d0cfeeed8990319bf4d6b3dd77963030fee4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E7=94=9F=E7=93=9C=E5=AD=90=E5=A4=A7=E6=9D=8F?= =?UTF-8?q?=E4=BB=81?= Date: Sat, 10 Aug 2024 20:59:49 +0800 Subject: [PATCH] fix(chaoxing): upload to ChaoxingxingGroupCloud failed (#6953) change the data type on deserializing json --- drivers/chaoxing/types.go | 108 +++++++++++++++++++------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/drivers/chaoxing/types.go b/drivers/chaoxing/types.go index c3074bbb..71a59e15 100644 --- a/drivers/chaoxing/types.go +++ b/drivers/chaoxing/types.go @@ -191,33 +191,33 @@ type UploadFileDataRsp struct { Resid int64 `json:"resid"` Puid int `json:"puid"` Data struct { - DisableOpt bool `json:"disableOpt"` - Resid int64 `json:"resid"` - Crc string `json:"crc"` - Puid int `json:"puid"` - Isfile bool `json:"isfile"` - Pantype string `json:"pantype"` - Size int `json:"size"` - Name string `json:"name"` - ObjectID string `json:"objectId"` - Restype string `json:"restype"` - UploadDate time.Time `json:"uploadDate"` - ModifyDate time.Time `json:"modifyDate"` - UploadDateFormat string `json:"uploadDateFormat"` - Residstr string `json:"residstr"` - Suffix string `json:"suffix"` - Preview string `json:"preview"` - Thumbnail string `json:"thumbnail"` - Creator int `json:"creator"` - Duration int `json:"duration"` - IsImg bool `json:"isImg"` - PreviewURL string `json:"previewUrl"` - Filetype string `json:"filetype"` - Filepath string `json:"filepath"` - Sort int `json:"sort"` - Topsort int `json:"topsort"` - ResTypeValue int `json:"resTypeValue"` - Extinfo string `json:"extinfo"` + DisableOpt bool `json:"disableOpt"` + Resid int64 `json:"resid"` + Crc string `json:"crc"` + Puid int `json:"puid"` + Isfile bool `json:"isfile"` + Pantype string `json:"pantype"` + Size int `json:"size"` + Name string `json:"name"` + ObjectID string `json:"objectId"` + Restype string `json:"restype"` + UploadDate int64 `json:"uploadDate"` + ModifyDate int64 `json:"modifyDate"` + UploadDateFormat string `json:"uploadDateFormat"` + Residstr string `json:"residstr"` + Suffix string `json:"suffix"` + Preview string `json:"preview"` + Thumbnail string `json:"thumbnail"` + Creator int `json:"creator"` + Duration int `json:"duration"` + IsImg bool `json:"isImg"` + PreviewURL string `json:"previewUrl"` + Filetype string `json:"filetype"` + Filepath string `json:"filepath"` + Sort int `json:"sort"` + Topsort int `json:"topsort"` + ResTypeValue int `json:"resTypeValue"` + Extinfo string `json:"extinfo"` } `json:"data"` } @@ -225,33 +225,33 @@ type UploadDoneParam struct { Cataid string `json:"cataid"` Key string `json:"key"` Param struct { - DisableOpt bool `json:"disableOpt"` - Resid int64 `json:"resid"` - Crc string `json:"crc"` - Puid int `json:"puid"` - Isfile bool `json:"isfile"` - Pantype string `json:"pantype"` - Size int `json:"size"` - Name string `json:"name"` - ObjectID string `json:"objectId"` - Restype string `json:"restype"` - UploadDate time.Time `json:"uploadDate"` - ModifyDate time.Time `json:"modifyDate"` - UploadDateFormat string `json:"uploadDateFormat"` - Residstr string `json:"residstr"` - Suffix string `json:"suffix"` - Preview string `json:"preview"` - Thumbnail string `json:"thumbnail"` - Creator int `json:"creator"` - Duration int `json:"duration"` - IsImg bool `json:"isImg"` - PreviewURL string `json:"previewUrl"` - Filetype string `json:"filetype"` - Filepath string `json:"filepath"` - Sort int `json:"sort"` - Topsort int `json:"topsort"` - ResTypeValue int `json:"resTypeValue"` - Extinfo string `json:"extinfo"` + DisableOpt bool `json:"disableOpt"` + Resid int64 `json:"resid"` + Crc string `json:"crc"` + Puid int `json:"puid"` + Isfile bool `json:"isfile"` + Pantype string `json:"pantype"` + Size int `json:"size"` + Name string `json:"name"` + ObjectID string `json:"objectId"` + Restype string `json:"restype"` + UploadDate int64 `json:"uploadDate"` + ModifyDate int64 `json:"modifyDate"` + UploadDateFormat string `json:"uploadDateFormat"` + Residstr string `json:"residstr"` + Suffix string `json:"suffix"` + Preview string `json:"preview"` + Thumbnail string `json:"thumbnail"` + Creator int `json:"creator"` + Duration int `json:"duration"` + IsImg bool `json:"isImg"` + PreviewURL string `json:"previewUrl"` + Filetype string `json:"filetype"` + Filepath string `json:"filepath"` + Sort int `json:"sort"` + Topsort int `json:"topsort"` + ResTypeValue int `json:"resTypeValue"` + Extinfo string `json:"extinfo"` } `json:"param"` }