1
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/jdapi"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tiktok_shop/tiktok_api"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/ddmsg"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
@@ -69,10 +70,13 @@ func (a *APIManager) GetAPI(vendorID int, appOrgCode string) (pfAPI interface{})
|
||||
}
|
||||
case model.VendorIDTaoVegetable:
|
||||
api := api.TaoVegetableApi
|
||||
globals.SugarLogger.Debugf("api :======= %s", utils.Format4Output(api, false))
|
||||
globals.SugarLogger.Debugf("api :======= %s", utils.Format4Output(beego.BConfig.RunMode, false))
|
||||
if beego.BConfig.RunMode == "dev" {
|
||||
api.SetToken("50002C00414zMSClqLiSDjBr2N19748391yiazjtFmsgTOdbBftik0XDfkUQywSmcjfC")
|
||||
} else if api == nil || api.GetToken() == "" {
|
||||
codes, _ := dao.GetVendorOrgCode(db, vendorID, appOrgCode, "platform")
|
||||
globals.SugarLogger.Debugf("api :======= %s", utils.Format4Output(codes, false))
|
||||
if len(codes) == 0 {
|
||||
return nil
|
||||
}
|
||||
@@ -88,6 +92,7 @@ func (a *APIManager) GetAPI(vendorID int, appOrgCode string) (pfAPI interface{})
|
||||
}
|
||||
}
|
||||
}
|
||||
globals.SugarLogger.Debugf("api 2:======= %s", utils.Format4Output(api, false))
|
||||
|
||||
pfAPI = api
|
||||
case model.VendorIDEBAI:
|
||||
|
||||
Reference in New Issue
Block a user