...
|
...
|
@@ -162,7 +162,7 @@ class UserModel |
|
|
$product['price'] = '¥'.$val['market_price'];
|
|
|
$product['discountPrice'] = '¥'.$val['sales_price'];
|
|
|
$product['savePrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥'.($val['market_price'] - $val['sales_price']) : false;
|
|
|
$product['sellOut'] = boolval($val['price_down']);
|
|
|
$product['sellOut'] = (bool)($val['price_down']);
|
|
|
|
|
|
$result[] = $product;
|
|
|
}
|
...
|
...
|
@@ -432,7 +432,7 @@ class UserModel |
|
|
$one['imgUrl'] = Helpers::getImageUrl($val['cover_image'], 640, 240);
|
|
|
$one['title'] = $val['filter_content'];
|
|
|
$one['content'] = $val['reply_content'];
|
|
|
$one['good'] = boolval($val['is_reliable']);
|
|
|
$one['good'] = (bool)($val['is_reliable']);
|
|
|
$one['bad'] = !$one['good'];
|
|
|
|
|
|
$result[] = $one;
|
...
|
...
|
|