Commit 0d2d3fcc authored by wwccw0591's avatar wwccw0591

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

parents 2e3d26c8 1df56357
......@@ -13,7 +13,8 @@ class StoreController extends \Our\Controller_AbstractIndex {
* 获取店铺首页头部(公用)
*/
public function getStoreInfoAction(){
$storeInfo = $this->storeService->getStoreInfo($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['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']);
......
......@@ -37,13 +37,18 @@ class StoreServiceModel extends \Business\AbstractModel{
* @param $store_id
* @param $memberId
*/
public function getStoreInfo($param,$memberId){
public function getStoreInfo($param,$memberId,$address){
$storeId = intval($param['storeId']);
if(!$storeId){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyStoreId);
}
$lng = $param['lng'];
$lat = $param['lat'];
if($address) {
$lng = $address['lng'];
$lat = $address['lat'];
}else{
$lng = $param['lng'];
$lat = $param['lat'];
}
if(!$lng || !$lat){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyLatLngParam);
}
......
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