- 内嵌APICookie后,删除一些冗余的数据成员

This commit is contained in:
gazebo
2019-09-10 14:22:49 +08:00
parent a1c5ec77ff
commit 938b28e5a8
7 changed files with 21 additions and 36 deletions

View File

@@ -9,7 +9,6 @@ import (
"net/url"
"sort"
"strings"
"sync"
"time"
"git.rosy.net.cn/baseapi"
@@ -60,9 +59,6 @@ type API struct {
callbackURL string
client *http.Client
config *platformapi.APIConfig
locker sync.RWMutex
userCookies map[string]string
}
var (
@@ -85,8 +81,6 @@ 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),
}
}