新增ebai2API
This commit is contained in:
@@ -39,8 +39,10 @@ var (
|
||||
Jd2API *jdapi.API
|
||||
FakeJdAPI *jdapi.API
|
||||
|
||||
ElmAPI *elmapi.API
|
||||
EbaiAPI *ebaiapi.API
|
||||
ElmAPI *elmapi.API
|
||||
EbaiAPI *ebaiapi.API
|
||||
Ebai2API *ebaiapi.API
|
||||
|
||||
MtwmAPI *mtwmapi.API
|
||||
MtpsAPI *mtpsapi.API
|
||||
DadaAPI *dadaapi.API
|
||||
@@ -130,8 +132,17 @@ func Init() {
|
||||
EbaiAPI.SetCookie("WMSTOKEN", ebaiStorePageCookieWMSTOKEN)
|
||||
EbaiAPI.SetCookie("PASSPORT_DELIMONT_TOKEN", ebaiStorePageCookieExdTOKEN)
|
||||
}
|
||||
Ebai2API = ebaiapi.New(beego.AppConfig.String("ebaiSource"), beego.AppConfig.String("ebaiSecret"))
|
||||
ebaiStorePageCookieWMUSS2 := beego.AppConfig.DefaultString("ebaiStorePageCookieWMUSS2", "")
|
||||
ebaiStorePageCookieWMSTOKEN2 := beego.AppConfig.DefaultString("ebaiStorePageCookieWMSTOKEN2", "")
|
||||
if ebaiStorePageCookieWMUSS2 != "" && ebaiStorePageCookieWMSTOKEN2 != "" && ebaiStorePageCookieExdTOKEN != "" {
|
||||
Ebai2API.SetCookie("WMUSS", ebaiStorePageCookieWMUSS2)
|
||||
Ebai2API.SetCookie("WMSTOKEN", ebaiStorePageCookieWMSTOKEN2)
|
||||
Ebai2API.SetCookie("PASSPORT_DELIMONT_TOKEN", ebaiStorePageCookieExdTOKEN)
|
||||
}
|
||||
} else {
|
||||
EbaiAPI = nil
|
||||
Ebai2API = nil
|
||||
}
|
||||
|
||||
if !beego.AppConfig.DefaultBool("disableMtps", false) {
|
||||
|
||||
Reference in New Issue
Block a user