Merge remote-tracking branch 'origin/mark' into don
This commit is contained in:
@@ -28,6 +28,7 @@ import (
|
||||
|
||||
var (
|
||||
JdAPI *jdapi.API
|
||||
JdPageAPI *jdapi.API
|
||||
ElmAPI *elmapi.API
|
||||
EbaiAPI *ebaiapi.API
|
||||
MtpsAPI *mtpsapi.API
|
||||
@@ -67,6 +68,10 @@ func Init() {
|
||||
cookieValue := beego.AppConfig.DefaultString("jdStorePageCookie", "")
|
||||
JdAPI.SetCookie("shop.o2o.jd.com1", cookieValue)
|
||||
JdAPI.SetCookie("lsp-store1.jddj.com", cookieValue)
|
||||
|
||||
conf := platformapi.NewDefAPIConfig()
|
||||
conf.MaxSleepSecondWhenExceedLimit = 60 * 30 // 最大重试间隙30分钟
|
||||
JdPageAPI = jdapi.NewPageOnly(cookieValue, conf)
|
||||
} else {
|
||||
JdAPI = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user