This commit is contained in:
邹宗楠
2023-09-12 18:39:43 +08:00
parent 65b704f9c8
commit c1f2454722
3 changed files with 4 additions and 6 deletions

View File

@@ -69,9 +69,6 @@ func (a *APIManager) GetAPI(vendorID int, appOrgCode string) (pfAPI interface{})
}
case model.VendorIDTaoVegetable:
api := api.TaoVegetableApi
//if beego.BConfig.RunMode == "dev" {
// api.SetToken("50002C00414zMSClqLiSDjBr2N19748391yiazjtFmsgTOdbBftik0XDfkUQywSmcjfC")
//} else if api == nil || api.GetToken() == "" {
codes, _ := dao.GetVendorOrgCode(db, vendorID, appOrgCode, "platform")
if len(codes) == 0 {
return nil
@@ -89,8 +86,6 @@ func (a *APIManager) GetAPI(vendorID int, appOrgCode string) (pfAPI interface{})
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "DDC5657B43EE11E9A9FF525400E86DC0", "淘鲜达token过期", ",请重新授权")
}
}
//}
pfAPI = api
case model.VendorIDEBAI:
pfAPI = api.EbaiAPI