wesmiler 3 months ago
parent
commit
c62e471f72
1 changed files with 1 additions and 1 deletions
  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;
         $mealType = isset($mealInfo['type']) && $mealInfo['type'] ? intval($mealInfo['type']) : 1;
         $productId= isset($mealInfo['product_id']) ? $mealInfo['product_id'] : 0;
         $productId= isset($mealInfo['product_id']) ? $mealInfo['product_id'] : 0;
         $remark= isset($mealInfo['remark']) ? $mealInfo['remark'] : '';
         $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)) {
         if (empty($mealInfo)) {
             $this->error = '该套餐不存在';
             $this->error = '该套餐不存在';
             RedisService::clear($cacheKey . '_lock');
             RedisService::clear($cacheKey . '_lock');