|
@@ -69,7 +69,7 @@ class BuyLogic extends BaseLogic
|
|
|
"price"=>$list["price"],
|
|
|
"goods_id"=>$list["goodsId"],
|
|
|
"discount"=>$list["discount"],
|
|
|
- "commission"=>floor($list["commission"]*$user["user_commission_rate"]/100),
|
|
|
+ "commission"=>round($list["commission"]*$user["user_commission_rate"]/100,2),
|
|
|
];
|
|
|
}
|
|
|
return [
|
|
@@ -102,7 +102,7 @@ class BuyLogic extends BaseLogic
|
|
|
"price"=>$res["price"],
|
|
|
"market_price"=>$res["marketPrice"],
|
|
|
"discount"=>$res["discount"],
|
|
|
- "commission"=>floor($res["commission"]*$user["user_commission_rate"]/100),
|
|
|
+ "commission"=>round($res["commission"]*$user["user_commission_rate"]/100,2),
|
|
|
"url"=>$res["url"],
|
|
|
"goods_carousel_pictures"=>$res["goodsCarouselPictures"],
|
|
|
"goods_detail_pictures"=>$res["goodsDetailPictures"],
|
|
@@ -151,7 +151,7 @@ class BuyLogic extends BaseLogic
|
|
|
"price"=>$list["price"],
|
|
|
"goods_id"=>$list["goodsId"],
|
|
|
"discount"=>$list["discount"],
|
|
|
- "commission"=>floor($list["commission"]*$user["user_commission_rate"]/100),
|
|
|
+ "commission"=>round($list["commission"]*$user["user_commission_rate"]/100,2),
|
|
|
];
|
|
|
}
|
|
|
|