抖音授权,门店回调日志打印,定时九点半日志打印,小程序门店切换时不成功

This commit is contained in:
邹宗楠
2022-04-15 18:08:43 +08:00
parent ca3d08ba77
commit 81cf7752fd
5 changed files with 182 additions and 182 deletions

View File

@@ -1,25 +1,24 @@
package tiktok
//
//import (
// "git.rosy.net.cn/baseapi/platformapi"
// "net/http"
// "sync"
//)
//
//const (
// BaseURL = "https://open.douyin.com"
// TiktokTokenUrl = "/oauth/access_token/"
// TiktokRefreshTokenUrl = "/oauth/renew_refresh_token/"
//)
//
//type API struct {
// clientSecret string // 应用唯一标识对应的密钥
// clientKey string // 应用唯一标识
// client *http.Client
// config *platformapi.APIConfig
// locker sync.RWMutex
//
// msgToken string
// msgKey string
//}
import (
"git.rosy.net.cn/baseapi/platformapi"
"net/http"
"sync"
)
const (
BaseURL = "https://open.douyin.com"
TiktokTokenUrl = "/oauth/access_token/"
TiktokRefreshTokenUrl = "/oauth/renew_refresh_token/"
)
type API struct {
clientSecret string // 应用唯一标识对应的密钥
clientKey string // 应用唯一标识
client *http.Client
config *platformapi.APIConfig
locker sync.RWMutex
msgToken string
msgKey string
}