银豹修改价格尝试
This commit is contained in:
@@ -49,7 +49,7 @@ type StoreSkuInfo struct {
|
||||
ActPrice int64 `json:"actPrice,omitempty"`
|
||||
VendorActID string `json:"vendorActID,omitempty"`
|
||||
IsSpecialty int `json:"isSpecialty,omitempty"`
|
||||
Price int `json:"jxPrice,omitempty"`
|
||||
JxPrice int `json:"jxPrice,omitempty"`
|
||||
}
|
||||
|
||||
type StoreSkuInfoWithErr struct {
|
||||
|
||||
@@ -138,7 +138,7 @@ func (p *PurchaseHandler) UpdateStoreSkusPrice(ctx *jxcontext.Context, vendorOrg
|
||||
var productInfo = &yinbaoapi.ProductInfo{
|
||||
UID: utils.Str2Int64(v.VendorSkuID),
|
||||
SellPrice: utils.Float64ToPointer(jxutils.IntPrice2Standard(v.VendorPrice)),
|
||||
BuyPrice: utils.Float64ToPointer(jxutils.IntPrice2Standard(int64(v.Price))),
|
||||
BuyPrice: utils.Float64ToPointer(jxutils.IntPrice2Standard(int64(v.JxPrice))),
|
||||
}
|
||||
err = api.YinBaoAPI.UpdateProductInfo(productInfo)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user