wesmiler 3 месяцев назад
Родитель
Сommit
c62e471f72
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Api/AccountService.php

+ 1 - 1
app/Services/Api/AccountService.php

@@ -228,7 +228,7 @@ class AccountService extends BaseService
         $mealType = isset($mealInfo['type']) && $mealInfo['type'] ? intval($mealInfo['type']) : 1;
         $productId= isset($mealInfo['product_id']) ? $mealInfo['product_id'] : 0;
         $remark= isset($mealInfo['remark']) ? $mealInfo['remark'] : '';
-        $price = $discount?round($money*$discount/100,2): $money;
+        $price = $discount?moneyFormat($money*$discount/100,2): $money;
         if (empty($mealInfo)) {
             $this->error = '该套餐不存在';
             RedisService::clear($cacheKey . '_lock');