提交
This commit is contained in:
@@ -4,10 +4,10 @@ import (
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"fmt"
|
||||
"yunink/app/pkg/convx"
|
||||
encryptsha1 "yunink/app/pkg/encryptx/sha1x"
|
||||
"yunink/app/pkg/tencentx/wechatx/cryptx"
|
||||
|
||||
"code.yun.ink/open/utils/convx"
|
||||
"code.yun.ink/open/utils/encryptx/sha1x"
|
||||
"code.yun.ink/open/utils/tencentx/wechatx/cryptx"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -76,7 +76,7 @@ func (w *wechat) Verify(ctx *gin.Context) {
|
||||
|
||||
verifyStr := fmt.Sprintf("%+v%+v%+v", nonce, timestamp, w.token)
|
||||
|
||||
sha1Str := encryptsha1.Sha1(verifyStr)
|
||||
sha1Str := sha1x.Sha1(verifyStr)
|
||||
if sha1Str == signature {
|
||||
fmt.Fprint(ctx.Writer, echostr)
|
||||
// ctx.String(200, echostr)
|
||||
|
||||
Reference in New Issue
Block a user