新增平台京东商城

This commit is contained in:
苏尹岚
2020-05-08 17:28:03 +08:00
parent d511317a14
commit 29f83461b7

View File

@@ -20,6 +20,7 @@ type PurchaseHandler struct {
}
func init() {
fmt.Println("test222222222222222222")
if api.JdShopAPI != nil {
fmt.Println("test111111111111111111111")
CurPurchaseHandler = New()
@@ -34,7 +35,7 @@ func New() (obj *PurchaseHandler) {
}
func (p *PurchaseHandler) GetVendorID() int {
return model.VendorIDYB
return model.VendorIDJDShop
}
func (p *PurchaseHandler) UploadImg(ctx *jxcontext.Context, vendorOrgCode, imgURL string, imgData []byte, imgName string, imgType int) (imgHint string, err error) {