1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-07 06:02:26 +08:00

符合gilint规范

This commit is contained in:
wenzl
2016-09-19 20:00:01 +08:00
parent 6a8dc6c3ea
commit 85fa02b00d
5 changed files with 19 additions and 17 deletions

View File

@@ -63,8 +63,8 @@ func (js *Js) GetConfig(uri string) (config *Config, err error) {
//getTicket 获取jsapi_tocket全局缓存
func (js *Js) getTicket() (ticketStr string, err error) {
js.GetJsApiTicketLock().Lock()
defer js.GetJsApiTicketLock().Unlock()
js.GetJsAPITicketLock().Lock()
defer js.GetJsAPITicketLock().Unlock()
//先从cache中取
jsAPITicketCacheKey := fmt.Sprintf("jsapi_ticket_%s", js.AppID)