使用有货币数目添加.00后缀
Code Review By Rock Zhang
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -511,6 +511,8 @@ class CartModel | @@ -511,6 +511,8 @@ class CartModel | ||
511 | 511 | ||
512 | $compute = CartData::orderCompute($uid, $cartType, $deliveryWay, $paymentType, $couponCode, $yohoCoin); | 512 | $compute = CartData::orderCompute($uid, $cartType, $deliveryWay, $paymentType, $couponCode, $yohoCoin); |
513 | if ($compute && isset($compute['code']) && $compute['code'] === 200) { | 513 | if ($compute && isset($compute['code']) && $compute['code'] === 200) { |
514 | + // 有货币添加.00后缀 | ||
515 | + $compute['data']['use_yoho_coin'] = Helpers::transPrice($compute['data']['use_yoho_coin']); | ||
514 | $result = $compute['data']; | 516 | $result = $compute['data']; |
515 | } | 517 | } |
516 | 518 |
-
Please register or login to post a comment