Commit 91e1e913 authored by chenchuanwen's avatar chenchuanwen

ccw

parent 3382e583
...@@ -320,13 +320,13 @@ class StoreServiceModel extends \Business\AbstractModel{ ...@@ -320,13 +320,13 @@ class StoreServiceModel extends \Business\AbstractModel{
* @return array * @return array
* @throws \Our\Exception * @throws \Our\Exception
*/ */
public function getStoreDetail($param){ public function getStoreDetail($param,$flag=true){
$storeId = intval($param['storeId']); $storeId = intval($param['storeId']);
if(!$storeId){ if(!$storeId){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyStoreId); \Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyStoreId);
} }
list($storeInfo,$storeLabel) = \DAO\StoreModel::getInstance()->get($storeId); list($storeInfo,$storeLabel) = \DAO\StoreModel::getInstance()->get($storeId,true,$flag);
//展示图片 //展示图片
// $detailImg = []; // $detailImg = [];
// if($storeInfo['store_detail_image']){ // if($storeInfo['store_detail_image']){
......
...@@ -43,7 +43,7 @@ class UserController extends \Our\Controller_AbstractIndex { ...@@ -43,7 +43,7 @@ class UserController extends \Our\Controller_AbstractIndex {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::storeIsRefuse); \Error\ErrorModel::throwException(\Error\CodeConfigModel::storeIsRefuse);
} }
$storeService =\Business\Store\StoreServiceModel::getInstance(); $storeService =\Business\Store\StoreServiceModel::getInstance();
$storeOne=$storeService->getStoreDetail($seller); $storeOne=$storeService->getStoreDetail($seller,false);
}else{ }else{
\Error\ErrorModel::throwException(\Error\CodeConfigModel::errorUsernameOrPassword); \Error\ErrorModel::throwException(\Error\CodeConfigModel::errorUsernameOrPassword);
} }
......
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