少出100
This commit is contained in:
@@ -395,9 +395,9 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao.
|
|||||||
if price == int(v.SalePrice) {
|
if price == int(v.SalePrice) {
|
||||||
var earningPrice = 0
|
var earningPrice = 0
|
||||||
if v.ShopPrice < v.SalePrice {
|
if v.ShopPrice < v.SalePrice {
|
||||||
earningPrice = int(v.ShopPrice) * storePayPercentage
|
earningPrice = int(v.ShopPrice) * storePayPercentage / 100
|
||||||
} else {
|
} else {
|
||||||
earningPrice = int(v.ShopPrice) * storePayPercentage
|
earningPrice = int(v.ShopPrice) * storePayPercentage / 100
|
||||||
}
|
}
|
||||||
v.EarningPrice = int64(earningPrice)
|
v.EarningPrice = int64(earningPrice)
|
||||||
globals.SugarLogger.Debugf("TestearningPrice", earningPrice)
|
globals.SugarLogger.Debugf("TestearningPrice", earningPrice)
|
||||||
|
|||||||
@@ -94,8 +94,9 @@ func (c *DeliveryHandler) GetStore(ctx *jxcontext.Context, storeID int, vendorSt
|
|||||||
VendorID: model.VendorIDMTPS,
|
VendorID: model.VendorIDMTPS,
|
||||||
VendorStoreID: shopInfo.ShopID,
|
VendorStoreID: shopInfo.ShopID,
|
||||||
CourierStatus: model.StoreStatusOpened,
|
CourierStatus: model.StoreStatusOpened,
|
||||||
AuditStatus: model.StoreAuditStatusOnline,
|
// AuditStatus: model.StoreAuditStatusOnline,
|
||||||
}
|
}
|
||||||
|
// result, err := api.MtpsAPI.GetStoreStatus(shopInfo.ShopName)
|
||||||
}
|
}
|
||||||
return storeDetail, err
|
return storeDetail, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user