Commit 91e1e913 authored by chenchuanwen's avatar chenchuanwen

ccw

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