Commit c9b22e02 authored by zhz's avatar zhz

goods

parent 698d39cc
...@@ -15,7 +15,7 @@ class GoodsController extends \Our\Controller_AbstractIndex { ...@@ -15,7 +15,7 @@ class GoodsController extends \Our\Controller_AbstractIndex {
public function getAction(){ public function getAction(){
$address = \Business\User\AddressServiceModel::getInstance()->getMyAddress($this->req[\Our\NameConst::data],$this->memberId,false); $address = \Business\User\AddressServiceModel::getInstance()->getMyAddress($this->req[\Our\NameConst::data],$this->memberId,false);
$goodsInfo = $this->goodsService->getCommonDetail($this->req[\Our\NameConst::data],$this->memberId,$address); $goodsInfo = $this->goodsService->getCommonDetail($this->req[\Our\NameConst::data],$this->memberId,$address);
$store = $this->goodsService->getStore($goodsInfo['storeId'],false,false); $store = $this->goodsService->getStore($goodsInfo['storeId'],false);
$goodsInfo['freeShippingPrice'] = $store['freeShippingPrice']; $goodsInfo['freeShippingPrice'] = $store['freeShippingPrice'];
$goodsInfo['isQuality'] = $store['isQuality']; $goodsInfo['isQuality'] = $store['isQuality'];
$evaluation =$this->goodsService->getEvaluation($this->req[\Our\NameConst::data]); $evaluation =$this->goodsService->getEvaluation($this->req[\Our\NameConst::data]);
......
...@@ -23,7 +23,7 @@ class GroupController extends \Our\Controller_AbstractIndex { ...@@ -23,7 +23,7 @@ class GroupController extends \Our\Controller_AbstractIndex {
$goods = $this->GroupSaleService->getGroupGoods($this->req[\Our\NameConst::data],$address); $goods = $this->GroupSaleService->getGroupGoods($this->req[\Our\NameConst::data],$address);
// $data = $this->GroupSaleService->getOnePBundingCache($this->req[\Our\NameConst::data]['groupId']); // $data = $this->GroupSaleService->getOnePBundingCache($this->req[\Our\NameConst::data]['groupId']);
// $this->GroupSaleService->handleData($data); // $this->GroupSaleService->handleData($data);
$storeInfo = \Business\Goods\GoodsCommonServiceModel::getInstance()->getStore($goods['store_id'],false,false); $storeInfo = \Business\Goods\GoodsCommonServiceModel::getInstance()->getStore($goods['store_id'],false);
unset($storeInfo['freeShippingPrice']);unset($storeInfo['isQuality']);unset($storeInfo['shareDesc']); unset($storeInfo['freeShippingPrice']);unset($storeInfo['isQuality']);unset($storeInfo['shareDesc']);
$otherGroups = \Business\Goods\GroupSaleServiceModel::getInstance()->getOtherGroup($goods['store_id'],$this->req[\Our\NameConst::data]['groupId']); $otherGroups = \Business\Goods\GroupSaleServiceModel::getInstance()->getOtherGroup($goods['store_id'],$this->req[\Our\NameConst::data]['groupId']);
\Business\Goods\GroupSaleServiceModel::getInstance()->addBrowseRecord($this->req[\Our\NameConst::data],$this->memberId); \Business\Goods\GroupSaleServiceModel::getInstance()->addBrowseRecord($this->req[\Our\NameConst::data],$this->memberId);
......
...@@ -744,8 +744,8 @@ class GoodsCommonServiceModel extends \Business\AbstractModel ...@@ -744,8 +744,8 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
* @return array * @return array
* @throws \Our\Exception * @throws \Our\Exception
*/ */
public function getStore($storeId, $label = false, $reportError = false){ public function getStore($storeId, $label = false){
$storeInfo = \DAO\StoreModel::getInstance()->get($storeId,$label,$reportError); $storeInfo = \DAO\StoreModel::getInstance()->get($storeId,$label);
$commonInstance = \DAO\GoodsCommonModel::getInstance(); $commonInstance = \DAO\GoodsCommonModel::getInstance();
$count = \Our\RedisHelper::cachedFunction(\Redis\Db4\GoodsCommonRedisModel::getInstance(),array(&$commonInstance, 'getCount'),array(array('store_id'=>$storeId)),\Our\ApiConst::oneDaySecond); $count = \Our\RedisHelper::cachedFunction(\Redis\Db4\GoodsCommonRedisModel::getInstance(),array(&$commonInstance, 'getCount'),array(array('store_id'=>$storeId)),\Our\ApiConst::oneDaySecond);
......
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