20 lines
762 B
Go
20 lines
762 B
Go
package controllers
|
||
|
||
import (
|
||
call "git.rosy.net.cn/baseapi/utils/weworkapi_golang-master"
|
||
"git.rosy.net.cn/jx-callback/globals"
|
||
"github.com/astaxie/beego/server/web"
|
||
)
|
||
|
||
type EnterpriseController struct {
|
||
web.Controller
|
||
}
|
||
|
||
// EnterpriseCallback 在发生授权、通讯录变更、ticket变化等事件时,企业微信服务器会向应用的“指令回调URL”推送相应的事件消息。
|
||
// 消息结构体将使用创建应用时的EncodingAESKey进行加密(特别注意, 在第三方回调事件中使用加解密算法,receiveid的内容为suiteid)
|
||
// ,请参考接收消息解析数据包。
|
||
func (e *EnterpriseController) EnterpriseCallback() {
|
||
globals.SugarLogger.Debug("=====")
|
||
call.VerifyURL(e.Ctx.ResponseWriter, e.Ctx.Request)
|
||
}
|