Forráskód Böngészése

修正返回的数据格式不正确,导致前端显示NaN

深林孤鹰 3 éve
szülő
commit
ffb147f980

+ 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)
     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 (!$vipStatus) $is_vip = 0;
         //已登录
         //已登录
         if ($uid) {
         if ($uid) {