- mtwm user page api
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"net/url"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
@@ -51,6 +52,9 @@ type API struct {
|
||||
callbackURL string
|
||||
client *http.Client
|
||||
config *platformapi.APIConfig
|
||||
|
||||
locker sync.RWMutex
|
||||
userCookies map[string]string
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -71,6 +75,8 @@ func New(appID, secret, callbackURL string, config ...*platformapi.APIConfig) *A
|
||||
callbackURL: callbackURL,
|
||||
client: &http.Client{Timeout: curConfig.ClientTimeout},
|
||||
config: &curConfig,
|
||||
|
||||
userCookies: make(map[string]string),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user