wechat

package
v0.0.0-...-f94672d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccessTokenServer core.AccessTokenServer
	WechatClient      *core.Client
)

Functions

func WxCallbackHandler

func WxCallbackHandler(c *gin.Context)

wxCallbackHandler 是处理回调请求的 http handler.

  1. 不同的 web 框架有不同的实现
  2. 一般一个 handler 处理一个公众号的回调请求(当然也可以处理多个, 这里我只处理一个)

func WxCheck

func WxCheck(c *gin.Context)

@Summary 微信校验 @produce text/xml @Param echostr query string true "echostr" @Param signature query string true "signature" @Param timestamp query string true "timestamp" @Param nonce query string true "nonce" @Success 200 {string} string "return the querry echostr" @failure 400 {string} string "return the errormsg" @Router /wx/check [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL