Selaa lähdekoodia

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

深林孤鹰 3 vuotta sitten
vanhempi
commit
ffb147f980
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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) {