This commit is contained in:
jiangyong 2025-09-13 11:58:58 +08:00
parent 017547f20b
commit 5c33808b83
1 changed files with 7 additions and 7 deletions

View File

@ -68,12 +68,12 @@ type BaseResponse struct {
} }
type AppConfig struct { type AppConfig struct {
Corpid string Corpid string `json:"corpid"`
Secret string Secret string `json:"secret"`
Agent string Agent string `json:"agent"`
Token string Token string `json:"token"`
AesKey string AesKey string `json:"aes_key"`
Replay func(message.MixMessage) *message.Reply Replay func(message.MixMessage) *message.Reply `json:"-"`
} }
type App struct { type App struct {
@ -354,7 +354,7 @@ func (q *App) Callback(ctx *gin.Context) {
_, resp, err := wutil.DecryptMsg(wechatConfig.AppID, ctx.Query("echostr"), wechatConfig.EncodingAESKey) _, resp, err := wutil.DecryptMsg(wechatConfig.AppID, ctx.Query("echostr"), wechatConfig.EncodingAESKey)
if err != nil { if err != nil {
log.Errorf("DecryptMsg failed! wechatConfig[%s] error:%s ", goutil.EncodeJSON(wechatConfig), err.Error()) log.Errorf("DecryptMsg failed! wechatConfig[%s] error:%s ", goutil.EncodeJSON(q.config), err.Error())
return return
} }
ctx.Data(http.StatusOK, "Content-type: text/plain", resp) ctx.Data(http.StatusOK, "Content-type: text/plain", resp)