Просмотр исходного кода

!47 修正返回的数据格式不正确,导致前端显示NaN
Merge pull request !47 from 深林孤鹰/N/A

吴昊天 3 лет назад
Родитель
Сommit
a52078d29f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      crmeb/app/services/product/product/StoreProductServices.php

+ 1 - 1
crmeb/app/services/product/product/StoreProductServices.php

@@ -1483,7 +1483,7 @@ class StoreProductServices extends BaseServices
      */
     public function setLevelPrice($price, int $uid, $userInfo, $vipStatus, $discount = 0, $vipPrice = 0.00, $is_vip = 0, $is_show = false)
     {
-        if (!(float)$price) return $price;
+        if (!(float)$price) return [(float)$price, (float)$price, 'level'];
         if (!$vipStatus) $is_vip = 0;
         //已登录
         if ($uid) {