chore: 移除 daemon 模式

This commit is contained in:
Mmx233
2023-06-01 18:26:09 +08:00
parent 874eeddf96
commit 6c60a52d4e
10 changed files with 7 additions and 133 deletions

View File

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

View File

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