chore: 移除 daemon 模式
This commit is contained in:
@@ -18,7 +18,7 @@ type Api struct {
|
||||
Header http.Header
|
||||
}
|
||||
|
||||
func (a *Api) Init(https bool, domain string, client *http.Client, header http.Header) {
|
||||
func (a *Api) Init(https bool, domain string, client *http.Client) {
|
||||
if a.inited {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -30,11 +30,10 @@ type Conf struct {
|
||||
//登录参数,不可缺省
|
||||
LoginInfo LoginInfo
|
||||
Client *http.Client
|
||||
Header http.Header
|
||||
|
||||
api Api
|
||||
}
|
||||
|
||||
func (a *Conf) initApi() {
|
||||
a.api.Init(a.Https, a.LoginInfo.Form.Domain, a.Client, a.Header)
|
||||
a.api.Init(a.Https, a.LoginInfo.Form.Domain, a.Client)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user