Commit 72dbd34d authored by liuyuzhen's avatar liuyuzhen

店铺销量定时器

parent 2301bfa2
......@@ -1178,7 +1178,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
if($storeId!==false){
break;
}
if(!($storeIds&&in_array($storeId,$storeIds))){
if($storeIds&&!($storeIds&&in_array($storeId,$storeIds))){
$topSaleList=$storeTopSaleGoodsModel->getStoreTopSaleGoodsListByStoreId($storeId);
$storeTopSaleList = $this->getNewStoreTopSaleGoodsList($topSaleList,$storeId);
$topSaleList = $topSaleList?array_merge($topSaleList,$storeTopSaleList):$storeTopSaleList;
......
......@@ -96,7 +96,12 @@ class AbstractModel extends \Redis\AbstractModel {
return $this->lpush($this->calcKey($h),$value);
}
public function tableLPop($h){
return $this->lpop($this->calcKey($h));
if($res=$this->lpop($this->calcKey($h))){
return $res;
}else{
return false;
}
}
public function tableSRandMember($h,$count = null){
return $this->sRandMember($this->calcKey($h),$count);
......
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