Compare commits

..
2 Commits
Author SHA1 Message Date
maguodong 7777630306 修改商户附件字段名称
- 将 FileData 结构体中的 AttField 字段重命名为 AttFileId
- 保持 AttType 字段不变
- 更新相关注释说明文件编号的含义
2025-10-16 16:46:07 +08:00
maguodong de64d7b076 优化JSON日志输出格式
- 将reqJson的日志输出格式从%+v改为%v
- 使用string()方法确保JSON数据以字符串形式输出
- 避免复杂结构体的冗余字段展示
2025-10-16 16:08:31 +08:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ func (c *Client[T]) DoRequest(url string, reqData interface{}) (*T, error) {
if err != nil {
return nil, fmt.Errorf("清理JSON空值失败: %v", err)
}
g.Log().Infof(c.ctx, "清理后的json: %+v", reqJson)
g.Log().Infof(c.ctx, "清理后的json: %v", string(reqJson))
auth, err := c.generateSign(reqJson)
if err != nil {
+2 -2
View File
@@ -81,8 +81,8 @@ type FeeData struct {
// FileData 附件集合结构体
type FileData struct {
AttField string `json:"attField"` // 文件编号/附件上传后返回的编号,必填
AttType string `json:"attType"` // 附件类型,必填
AttFileId string `json:"attFileId"` // 文件编号/附件上传后返回的编号,必填
AttType string `json:"attType"` // 附件类型,必填
}
// MerchantApplyResponse 商户进件响应结构体