wechat_token

command module
v0.0.0-...-ecb1187 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 6 Imported by: 0

README

wechat_token

介绍

微信公众平台AccessToken中控 支持多公众号管理AccessToken

安装教程

go run main.go -c app.yml

打包发布 sh release.sh {{ip}}

接口

/token (根据对应的appid 获取对应的token)

/ticket(根据对应的appid 获取对应的jsApiTicket)

/secret(根据对应的appid 获取对应的secret)

/jscode2session(根据对应的appid和code 获取对应的session_key)

单元测试

go test tests/app_test.go

配置appid及secret

修改app.yml中auth.keys,多个公众号使用map结构,key为appid,value为secret

接口验证

sign生成规则:sha1(secret + nonce + curTime)

secret:秘钥

nonce:随机字符串

curTime:当前unix时间戳

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
core
utils

Jump to

Keyboard shortcuts

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