fix
This commit is contained in:
parent
79120e1fd9
commit
e23ee6518d
|
@ -84,7 +84,7 @@ func (l *CalculateProductPriceLogic) CalculateProductPrice(req *types.CalculateP
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to calculate product price ")
|
return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to calculate product price ")
|
||||||
}
|
}
|
||||||
return resp.SetStatus(basic.CodeOK, "success", types.CalculateProductPriceRsp{
|
return resp.SetStatusWithMessage(basic.CodeOK, "success", types.CalculateProductPriceRsp{
|
||||||
ItemPrice: format.CentitoDollar(itemPrice, 3),
|
ItemPrice: format.CentitoDollar(itemPrice, 3),
|
||||||
TotalPrice: format.CentitoDollarWithNoHalfAdjust(totalPrice, 2),
|
TotalPrice: format.CentitoDollarWithNoHalfAdjust(totalPrice, 2),
|
||||||
PurchaseQuantity: req.PurchaseQuantity,
|
PurchaseQuantity: req.PurchaseQuantity,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user