1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 21:02:25 +08:00

Merge pull request #31 from silenceper/f-add-json-tag

add json tag
This commit is contained in:
silenceper
2017-10-25 05:40:07 +03:00
committed by GitHub

View File

@@ -18,10 +18,10 @@ type Js struct {
// Config 返回给用户jssdk配置信息
type Config struct {
AppID string
TimeStamp int64
NonceStr string
Signature string
AppID string `json:"app_id"`
Timestamp int64 `json:"timestamp"`
NonceStr string `json:"nonce_str"`
Signature string `json:"signature"`
}
// resTicket 请求jsapi_tikcet返回结果
@@ -56,7 +56,7 @@ func (js *Js) GetConfig(uri string) (config *Config, err error) {
config.AppID = js.AppID
config.NonceStr = nonceStr
config.TimeStamp = timestamp
config.Timestamp = timestamp
config.Signature = sigStr
return
}