Skip to content

Commit

Permalink
增加快速注册小程序
Browse files Browse the repository at this point in the history
  • Loading branch information
sharklet committed Mar 28, 2021
1 parent c96215a commit a11773b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/open/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ func (self *Client) ApiComponentToken() (string, error) {
log.Println(err)
return "", err
}
if _, ok := componentToken["component_access_token"]; !ok {
return "", errors.New("获取组件Token失败")
}
return componentToken["component_access_token"].(string), nil
}
resp, err := self.Cache.Get(ComponentTokenCacheKeyPrefix + self.AppId)
Expand Down

0 comments on commit a11773b

Please sign in to comment.