|
|
@@ -33,7 +33,7 @@ func KuaishouAuth() { |
|
|
|
} |
|
|
|
teamAccessRefreshToken := gjson.Get(token, "refresh_token").String() |
|
|
|
teamAccessTime := time.Now().Unix() + gjson.Get(token, "expires_in").Int() - 60 |
|
|
|
cache.SetEx("kuaishou:"+kuaishouAppkey, accessToken, int(gjson.Get(token, "expires_in").Int()-60)) |
|
|
|
cache.SetEx("kuaishou:"+kuaishouAppkey, accessToken, int(gjson.Get(token, "expires_in").Int())) |
|
|
|
db.MasterListCfgSave("0", "kuaishou_official_access_token", accessToken) |
|
|
|
db.MasterListCfgSave("0", "kuaishou_official_expires_in", utils.Int64ToStr(teamAccessTime)) |
|
|
|
db.MasterListCfgSave("0", "kuaishou_official_refresh_token", teamAccessRefreshToken) |
|
|
|