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

Merge pull request !47 from 深林孤鹰/N/A
This commit is contained in:
吴昊天 2022-02-10 02:23:11 +00:00 committed by Gitee
commit a52078d29f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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) {