Commit 833faa2d authored by zhz's avatar zhz

冲突

parents c5e24876 b047d4e4
...@@ -103,4 +103,6 @@ class ImageConst{ ...@@ -103,4 +103,6 @@ class ImageConst{
const commentCircleStoreLabel = 48; const commentCircleStoreLabel = 48;
const storeQualificationImg = 188; const storeQualificationImg = 188;
const storeCollectionImg = 112; const storeCollectionImg = 112;
const homeIndexHotGoodsImageSize =250;
} }
...@@ -35,6 +35,9 @@ class AddressServiceModel extends \Business\AbstractModel { ...@@ -35,6 +35,9 @@ 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){
$result = true;
}
}else{ }else{
$result = $addressDao->insert($address); $result = $addressDao->insert($address);
$addressId = $result; $addressId = $result;
......
File mode changed from 100755 to 100644
...@@ -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