aa
This commit is contained in:
@@ -52,6 +52,7 @@ var (
|
||||
Jd2API *jdapi.API
|
||||
Jd3API *jdapi.API
|
||||
JdcsAPI *jdapi.API
|
||||
JdydAPI *jdapi.API
|
||||
FakeJdAPI *jdapi.API
|
||||
JdEclpAPI *jdeclpapi.API
|
||||
JdShopAPI *jdshopapi.API
|
||||
@@ -132,6 +133,10 @@ func Init() {
|
||||
JdcsAPI = jdapi.New(beego.AppConfig.String("jdcsToken"), beego.AppConfig.String("jdcsAppKey"), beego.AppConfig.String("jdcsSecret"))
|
||||
}
|
||||
|
||||
if globals.JdydOrgCode != "" {
|
||||
JdydAPI = jdapi.New(beego.AppConfig.String("jdydToken"), beego.AppConfig.String("jdydAppKey"), beego.AppConfig.String("jdydSecret"))
|
||||
}
|
||||
|
||||
fakeJdToken := beego.AppConfig.DefaultString("fakeJdToken", "")
|
||||
if fakeJdToken != "" {
|
||||
FakeJdAPI = jdapi.NewFakeJD(fakeJdToken, beego.AppConfig.String("fakeJdBaseURL"))
|
||||
|
||||
Reference in New Issue
Block a user