log
This commit is contained in:
parent
017547f20b
commit
5c33808b83
|
@ -68,12 +68,12 @@ type BaseResponse struct {
|
|||
}
|
||||
|
||||
type AppConfig struct {
|
||||
Corpid string
|
||||
Secret string
|
||||
Agent string
|
||||
Token string
|
||||
AesKey string
|
||||
Replay func(message.MixMessage) *message.Reply
|
||||
Corpid string `json:"corpid"`
|
||||
Secret string `json:"secret"`
|
||||
Agent string `json:"agent"`
|
||||
Token string `json:"token"`
|
||||
AesKey string `json:"aes_key"`
|
||||
Replay func(message.MixMessage) *message.Reply `json:"-"`
|
||||
}
|
||||
|
||||
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)
|
||||
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
|
||||
}
|
||||
ctx.Data(http.StatusOK, "Content-type: text/plain", resp)
|
||||
|
|
Loading…
Reference in New Issue