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

add json tag

This commit is contained in:
wenzl
2017-10-25 10:39:13 +08:00
parent 3f720b64c9
commit 84e76971cd

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
}