mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-12 16:52:28 +08:00
开放平台基本框架
This commit is contained in:
@@ -72,6 +72,7 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
//微信开放平台需要用到
|
||||
// InfoTypeVerifyTicket 返回ticket
|
||||
InfoTypeVerifyTicket InfoType = "component_verify_ticket"
|
||||
// InfoTypeAuthorized 授权
|
||||
|
||||
@@ -24,9 +24,9 @@ type OfficialAccount struct {
|
||||
|
||||
//NewOfficialAccount 实例化公众号API
|
||||
func NewOfficialAccount(cfg *config.Config) *OfficialAccount {
|
||||
if cfg.Cache == nil {
|
||||
panic("cache未设置")
|
||||
}
|
||||
//if cfg.Cache == nil {
|
||||
// panic("cache未设置")
|
||||
//}
|
||||
ctx := &context.Context{
|
||||
Config: cfg,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user