log
This commit is contained in:
parent
017547f20b
commit
5c33808b83
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue