Commit 503eab45 authored by liuyuzhen's avatar liuyuzhen

到店自提

parent c7b2e0df
...@@ -192,4 +192,13 @@ class HomeController extends \Our\Controller_AbstractIndex{ ...@@ -192,4 +192,13 @@ class HomeController extends \Our\Controller_AbstractIndex{
$otherGoods = $goodsCommonService->getIndexHotSalesGoods($currentAddress); $otherGoods = $goodsCommonService->getIndexHotSalesGoods($currentAddress);
$this->success($otherGoods); $this->success($otherGoods);
} }
public function testMemberAction(){
$memberList = \DAO\MemberModel::getInstance()->getAll();
foreach($memberList as $member){
}
}
} }
\ No newline at end of file
...@@ -173,13 +173,17 @@ class PBundlingModel extends \DAO\AbstractModel { ...@@ -173,13 +173,17 @@ class PBundlingModel extends \DAO\AbstractModel {
$pBundlingDao->tableDelAll($pBundlingDao->tableKeys('*'.\Our\NameConst::blGoods.$goodsCommonId)); $pBundlingDao->tableDelAll($pBundlingDao->tableKeys('*'.\Our\NameConst::blGoods.$goodsCommonId));
} }
public function delPBundlingListByStoreIdAndBlIds($storeId,$blId){ public function delPBundlingListByStoreIdAndBlIds($storeId=false,$blId=false){
if($blId){
\Our\RedisHelper::delCachedFunction(\Redis\Db4\PBundlingRedisModel::getInstance(),array(&$this, 'getList'),array(),array('*'.$blId.'*')); \Our\RedisHelper::delCachedFunction(\Redis\Db4\PBundlingRedisModel::getInstance(),array(&$this, 'getList'),array(),array('*'.$blId.'*'));
}
if($storeId){
\Our\RedisHelper::delCachedFunction(\Redis\Db4\PBundlingRedisModel::getInstance(),array(&$this, 'getList'),array(),array($storeId)); \Our\RedisHelper::delCachedFunction(\Redis\Db4\PBundlingRedisModel::getInstance(),array(&$this, 'getList'),array(),array($storeId));
$cartRedis = \Redis\Db7\CartRedisModel::getInstance(); $cartRedis = \Redis\Db7\CartRedisModel::getInstance();
$memberCartKey = \Our\NameConst::memberStoreCartsPrefix.'*_'.$storeId; $memberCartKey = \Our\NameConst::memberStoreCartsPrefix.'*_'.$storeId;
$cartRedis->tableDelAll($cartRedis->tableKeys($memberCartKey)); $cartRedis->tableDelAll($cartRedis->tableKeys($memberCartKey));
} }
}
/** /**
* 类实例 * 类实例
......
...@@ -435,7 +435,7 @@ class StoreModel extends \DAO\AbstractModel ...@@ -435,7 +435,7 @@ class StoreModel extends \DAO\AbstractModel
public function checkAddressInServiceArea($address, $store) public function checkAddressInServiceArea($address, $store)
{ {
$inAreaFlag = \Our\ApiConst::zero; $inAreaFlag = \Our\ApiConst::zero;
if ($store['express_distribution']) {//如果店铺开启了到店自提和快递配送,则认为存在可用配送方式 if ($store['buyer_distribution']) {//如果店铺开启了到店自提和快递配送,则认为存在可用配送方式
$inAreaFlag = \Our\ApiConst::one; $inAreaFlag = \Our\ApiConst::one;
return $inAreaFlag; return $inAreaFlag;
} }
......
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