Commit ccf08a08 authored by zhz's avatar zhz

storebanner

parent d321e892
......@@ -15,8 +15,6 @@ class StoreController extends \Our\Controller_AbstractIndex {
public function getStoreInfoAction(){
$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['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']);
$this->success($storeInfo);
}
......
......@@ -48,6 +48,7 @@ class ImageConst{
const defaultStoreLabelName = 'default_store_avatar.jpg';
const defaultStoreBannerName = 'default_store_banner.jpg';
//图片指向的域名
const imageDomain="ossHost";
......
......@@ -105,8 +105,9 @@ class StoreModel extends \DAO\AbstractModel
if ($img) {
$storeLabel = \Our\Common::getStaticFile($img, \Our\ImageConst::storeLabel, 'ossHost');
} 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;
}
/**
......
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