Commit 42df3850 authored by liuyuzhen's avatar liuyuzhen

首页图片以及地址保存问题

parent fa9b3284
...@@ -99,4 +99,5 @@ class ImageConst{ ...@@ -99,4 +99,5 @@ class ImageConst{
const goodsDetailImgSize = 750; const goodsDetailImgSize = 750;
const goodsCollectionImgSize = 336; const goodsCollectionImgSize = 336;
const footPrintGoodsImgSize = 216; const footPrintGoodsImgSize = 216;
const homeIndexHotGoodsImageSize =250;
} }
...@@ -35,6 +35,11 @@ class AddressServiceModel extends \Business\AbstractModel { ...@@ -35,6 +35,11 @@ class AddressServiceModel extends \Business\AbstractModel {
$where['address_id'] = $addressId; $where['address_id'] = $addressId;
$result = $addressDao->update($address,$where); $result = $addressDao->update($address,$where);
\Our\RedisHelper::delCachedFunction(\Redis\Db8\AddressRedisModel::getInstance(),array(&$addressDao, 'findByWhereWithColumns'),array(),array($addressId)); \Our\RedisHelper::delCachedFunction(\Redis\Db8\AddressRedisModel::getInstance(),array(&$addressDao, 'findByWhereWithColumns'),array(),array($addressId));
if($result===false){
return false;
}else{
return true;
}
}else{ }else{
$result = $addressDao->insert($address); $result = $addressDao->insert($address);
$addressId = $result; $addressId = $result;
......
...@@ -57,7 +57,7 @@ class StoreTopSaleGoodsModel extends \DAO\AbstractModel{ ...@@ -57,7 +57,7 @@ class StoreTopSaleGoodsModel extends \DAO\AbstractModel{
} }
if ($orderGoods) { if ($orderGoods) {
foreach($orderGoods as &$goods){ foreach($orderGoods as &$goods){
$goods['goodsImage'] = \Our\ImageUtil::getGoodsImgUrl($goods['goodsImage']); $goods['goodsImage'] = \Our\ImageUtil::getGoodsImgUrl($goods['goodsImage'],\Our\ImageConst::homeIndexHotGoodsImageSize);
} }
return $orderGoods; return $orderGoods;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment