fix jtexpress digest

This commit is contained in:
Sinh 2023-09-14 15:23:50 +07:00
parent 9e15bfc101
commit a929e52324
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import (
"github.com/go-resty/resty/v2"
"git.selly.red/Selly-Modules/3pl/util/base64"
"git.selly.red/Selly-Modules/3pl/util/pjson"
)
@ -115,5 +116,5 @@ func (c *Client) getDigest(data string) string {
h := md5.New()
io.WriteString(h, s)
return fmt.Sprintf("%x", h.Sum(nil))
return base64.Encode([]byte(fmt.Sprintf("%x", h.Sum(nil))))
}