...
|
...
|
@@ -46,14 +46,15 @@ class UserModel |
|
|
* 处理个人中心页面优惠券,收藏的商品等的数目数据
|
|
|
*
|
|
|
* @param int $uid 用户ID
|
|
|
* @param int $udid 客户端唯一标识
|
|
|
* @return array|mixed 处理之后的个人中心页面优惠券,收藏的商品等的数目数据
|
|
|
*/
|
|
|
public static function getInfoNumData($uid)
|
|
|
public static function getInfoNumData($uid, $udid)
|
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
// 调用接口获取个人中心页面优惠券,收藏的商品等的数目数据
|
|
|
$infoNumData = UserData::infoNum($uid);
|
|
|
$infoNumData = UserData::infoNum($uid, $udid);
|
|
|
|
|
|
// 处理个人中心页面优惠券,收藏的商品等的数目数据
|
|
|
if (isset($infoNumData['data']) && !empty($infoNumData['data'])) {
|
...
|
...
|
@@ -181,9 +182,9 @@ class UserModel |
|
|
$product['imgUrl'] = Helpers::getImageUrl($val['image'], 447, 596);
|
|
|
;
|
|
|
$product['title'] = $val['product_name'];
|
|
|
$product['price'] = !empty($val['market_price']) ? '¥' . $val['market_price'] . '.00' : 0;
|
|
|
$product['discountPrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥' . $val['sales_price'] . '.00' : false;
|
|
|
$product['savePrice'] = ($val['price_down'] > 0) ? '¥' . $val['price_down'] . '.00' : false;
|
|
|
$product['price'] = !empty($val['market_price']) ? '¥' . $val['market_price'] . '.00' : 0;
|
|
|
$product['discountPrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥' . $val['sales_price'] . '.00' : false;
|
|
|
$product['savePrice'] = ($val['price_down'] > 0) ? '¥' . $val['price_down'] . '.00' : false;
|
|
|
$product['sellOut'] = ($val['storage'] <= 0);
|
|
|
|
|
|
$datas[] = $product;
|
...
|
...
|
|