Authored by 郝肖肖

招架合丢的代码,优惠券和逛相关品牌€

... ... @@ -121,7 +121,7 @@ class InfoModel
//相关品牌
$result['brands'] = array();
if (isset($data['brands']) && !empty($data['brands'])) {
$result['brands'][] = array_map(function($val) {
$result['brands'] = array_map(function($val) {
$val['thumb'] = Helpers::getUrlSafe($val['thumb']);
$val['url'] = Helpers::getUrlSafe($val['url']);
return $val;
... ...
... ... @@ -45,7 +45,7 @@ class CouponModel
foreach ($couponlistval['data'] as $focus) {
$result['slide']['list'][] = array(
'href' => Helpers::getUrlSafe($focus['url']), //banner跳转链接
'img' => Images::getImageUrl($focus['src'])//banner图片
'img' => Images::getForceSourceUrl($focus['src'])//banner图片
);
}
}
... ... @@ -61,7 +61,7 @@ class CouponModel
foreach ($couponlistval['data'] as $couponskey => $couponsval) {
$result['categories'][$i]['coupons'][$couponskey] = array(
'id' => $couponsval['couponID'], //优惠券号
'img' => Images::getImageUrl($couponsval['image']['src']), //优惠券图片
'img' => Images::getForceSourceUrl($couponsval['image']['src']), //优惠券图片
'url' => Helpers::getUrlSafe($couponsval['image']['url']) //去逛逛链接
);
... ...