1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-08 06:32:27 +08:00
This commit is contained in:
wenzl
2016-09-19 20:10:48 +08:00
parent 59a2d41d69
commit 11cca83c5e
5 changed files with 17 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/silenceper/wechat/cache"
)
//Context struct
// Context struct
type Context struct {
AppID string
AppSecret string
@@ -41,12 +41,12 @@ func (ctx *Context) GetQuery(key string) (string, bool) {
return "", false
}
//SetJsAPITicketLock 设置jsAPITicket的lock
// SetJsAPITicketLock 设置jsAPITicket的lock
func (ctx *Context) SetJsAPITicketLock(lock *sync.RWMutex) {
ctx.jsAPITicketLock = lock
}
//GetJsAPITicketLock 获取jsAPITicket 的lock
// GetJsAPITicketLock 获取jsAPITicket 的lock
func (ctx *Context) GetJsAPITicketLock() *sync.RWMutex {
return ctx.jsAPITicketLock
}