Browse Source

更新

master
huangjiajun 7 months ago
parent
commit
293424fc35
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      app/task/svc/svc_kuaishou_auth.go

+ 11
- 2
app/task/svc/svc_kuaishou_auth.go View File

@@ -6,6 +6,7 @@ import (
"applet/app/utils" "applet/app/utils"
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/kuaishou" "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/kuaishou"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"strings"
"time" "time"
) )


@@ -34,12 +35,20 @@ func KuaishouAuth() {
db.MasterListCfgSave("0", "kuaishou_official_access_token", accessToken) db.MasterListCfgSave("0", "kuaishou_official_access_token", accessToken)
db.MasterListCfgSave("0", "kuaishou_official_expires_in", utils.Int64ToStr(teamAccessTime)) db.MasterListCfgSave("0", "kuaishou_official_expires_in", utils.Int64ToStr(teamAccessTime))
db.MasterListCfgSave("0", "kuaishou_official_refresh_token", teamAccessRefreshToken) 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, "accessToken": accessToken,
"teamAccessTime": utils.Int64ToStr(teamAccessTime), "teamAccessTime": utils.Int64ToStr(teamAccessTime),
"teamAccessRefreshToken": teamAccessRefreshToken, "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)
} }


} }

Loading…
Cancel
Save