This commit is contained in:
yangduo 2025-01-06 11:40:42 +08:00
parent 9e35fe6e5e
commit 9769a62222

View File

@ -2,6 +2,7 @@ package mainservice
import (
"crypto/sha1"
"encoding/hex"
"encoding/json"
"f5"
"io"
@ -59,7 +60,7 @@ func (this *MainServiceApi) WxTNotify(c *gin.Context) {
sb.WriteString(strs[2])
m := sha1.New()
io.WriteString(m, sb.String())
sign := string(m.Sum(nil))
sign := string(hex.EncodeToString(m.Sum(nil)))
f5.GetSysLog().Debug("wx sign:%s, %s", sign, signature)