diff --git a/pkg/fuiou/client.go b/pkg/fuiou/client.go index ef2543e..01b24fd 100644 --- a/pkg/fuiou/client.go +++ b/pkg/fuiou/client.go @@ -68,6 +68,8 @@ func NewClient(insCd, mchntCd, termId, apiURL, notifyURL, privateKeyBase64, publ func (c *Client) Sign(data interface{}) (string, error) { signStr := buildSignString(data) + c.logger.Debug("富友签名原文", zap.String("sign_str", signStr)) + // UTF-8 → GBK gbkBytes, err := utf8ToGBK([]byte(signStr)) if err != nil { @@ -227,11 +229,6 @@ func structToMap(data interface{}) map[string]string { continue } - // 排除空值 - if value == "" { - continue - } - result[tag] = value }