Commit 0c50f8fa authored by liuyuzhen's avatar liuyuzhen

Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz

parents 0e65e94e f5a1624b
...@@ -15,8 +15,6 @@ class StoreController extends \Our\Controller_AbstractIndex { ...@@ -15,8 +15,6 @@ class StoreController extends \Our\Controller_AbstractIndex {
public function getStoreInfoAction(){ public function getStoreInfoAction(){
$address = \Business\User\AddressServiceModel::getInstance()->getMyAddress($this->req[\Our\NameConst::data],$this->memberId); $address = \Business\User\AddressServiceModel::getInstance()->getMyAddress($this->req[\Our\NameConst::data],$this->memberId);
$storeInfo = $this->storeService->getStoreInfo($this->req[\Our\NameConst::data],$this->memberId, $address); $storeInfo = $this->storeService->getStoreInfo($this->req[\Our\NameConst::data],$this->memberId, $address);
//.
$storeInfo['adv'] = array('href'=>'','imageUrl'=>'http://qmoss-01.oss-cn-hangzhou.aliyuncs.com/data/upload/mall/adv/05715960161498410.jpg');
$storeInfo['share'] = \Business\Common\CommonServiceModel::getInstance()->getShareInfo(\Our\ApiConst::shareStore,$this->req[\Our\NameConst::data]['storeId']); $storeInfo['share'] = \Business\Common\CommonServiceModel::getInstance()->getShareInfo(\Our\ApiConst::shareStore,$this->req[\Our\NameConst::data]['storeId']);
$this->success($storeInfo); $this->success($storeInfo);
} }
......
...@@ -48,6 +48,7 @@ class ImageConst{ ...@@ -48,6 +48,7 @@ class ImageConst{
const defaultStoreLabelName = 'default_store_avatar.jpg'; const defaultStoreLabelName = 'default_store_avatar.jpg';
const defaultStoreBannerName = 'default_store_banner.jpg';
//图片指向的域名 //图片指向的域名
const imageDomain="ossHost"; const imageDomain="ossHost";
......
...@@ -105,8 +105,9 @@ class StoreModel extends \DAO\AbstractModel ...@@ -105,8 +105,9 @@ class StoreModel extends \DAO\AbstractModel
if ($img) { if ($img) {
$storeLabel = \Our\Common::getStaticFile($img, \Our\ImageConst::storeLabel, 'ossHost'); $storeLabel = \Our\Common::getStaticFile($img, \Our\ImageConst::storeLabel, 'ossHost');
} else { } else {
$storeLabel = \Our\Common::getStaticFile(ImageConst::defaultStoreLabelName, ImageConst::defaultPath); $storeLabel = \Our\Common::getStaticFile(ImageConst::defaultStoreBannerName, ImageConst::defaultPath);
} }
$storeLabel .= "?x-oss-process=image/resize,m_fill,h_314,w_750";
return $storeLabel; return $storeLabel;
} }
/** /**
......
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