diff --git a/application/api/controller/Shop.php b/application/api/controller/Shop.php index 5e81b2f..35a00ac 100644 --- a/application/api/controller/Shop.php +++ b/application/api/controller/Shop.php @@ -203,9 +203,9 @@ class Shop extends Api $GoodsArray[$k]['Sales'] = $IfEmptyGoodsArray['sales']; $GoodsArray[$k]['Type'] = $IfEmptyGoodsArray['type']; if ($IfEmptyGoodsArray['type'] == 1) { - $GoodsArray[$k]['KeZhuan'] = round($IfEmptyGoodsArray['price'] * $Jing, 2); + $GoodsArray[$k]['KeZhuan'] = round($IfEmptyGoodsArray['price'] * $Jing, 1); } else { - $GoodsArray[$k]['KeZhuan'] = round($IfEmptyGoodsArray['price'] * $Tong, 2); + $GoodsArray[$k]['KeZhuan'] = round($IfEmptyGoodsArray['price'] * $Tong, 1); } } }