|
|
@@ -6,6 +6,7 @@ import ( |
|
|
|
"applet/app/utils" |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/kuaishou" |
|
|
|
"github.com/tidwall/gjson" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
|
) |
|
|
|
|
|
|
@@ -34,12 +35,20 @@ func KuaishouAuth() { |
|
|
|
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) |
|
|
|
args1 := map[string]interface{}{ |
|
|
|
url := "http://izhim.com/?mod=api&act=kuaishou&ctrl=auth" |
|
|
|
args1 := map[string]string{ |
|
|
|
"accessToken": accessToken, |
|
|
|
"teamAccessTime": utils.Int64ToStr(teamAccessTime), |
|
|
|
"teamAccessRefreshToken": teamAccessRefreshToken, |
|
|
|
} |
|
|
|
utils.CurlPost("http://izhim.com/?mod=api&act=kuaishou&ctrl=auth", args1, nil) |
|
|
|
for k, v := range args1 { |
|
|
|
if strings.Contains(url, "?") == false { |
|
|
|
url += "?" + k + "=" + v |
|
|
|
} else { |
|
|
|
url += "&" + k + "=" + v |
|
|
|
} |
|
|
|
} |
|
|
|
utils.CurlGet(url, nil) |
|
|
|
} |
|
|
|
|
|
|
|
} |