Explorar el Código

更新

master
huangjiajun hace 7 meses
padre
commit
293424fc35
Se han modificado 1 ficheros con 11 adiciones y 2 borrados
  1. +11
    -2
      app/task/svc/svc_kuaishou_auth.go

+ 11
- 2
app/task/svc/svc_kuaishou_auth.go Ver fichero

@@ -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)
}

}

Cargando…
Cancelar
Guardar