Commit 4d54035f authored by liuyuzhen's avatar liuyuzhen

定时器问题

parent c79355a2
...@@ -1128,7 +1128,7 @@ class MemberServiceModel extends \Business\AbstractModel ...@@ -1128,7 +1128,7 @@ class MemberServiceModel extends \Business\AbstractModel
public function updateMemberAreaInfo(){ public function updateMemberAreaInfo(){
$currentTime = TIMESTAMP; $currentTime = TIMESTAMP;
$startTime = $currentTime-\Our\ApiConst::oneDaySecond; $startTime = $currentTime-\Our\ApiConst::oneDaySecond;
if($currentTime<1545235200){ if($currentTime<1546272000){
$startTime =0; $startTime =0;
} }
$whereSql = \Our\Common::format("member_provinceid = '0' and member_cityid = '0' and register_ip !='' and (member_time between '{0}' and '{1}') ",$startTime,$currentTime); $whereSql = \Our\Common::format("member_provinceid = '0' and member_cityid = '0' and register_ip !='' and (member_time between '{0}' and '{1}') ",$startTime,$currentTime);
......
...@@ -53,7 +53,7 @@ class ArticleModel extends \DAO\AbstractModel{ ...@@ -53,7 +53,7 @@ class ArticleModel extends \DAO\AbstractModel{
return $result; return $result;
} }
public function delArtcileCache($articleClassId,$articleId){ public function delArtcileCache($articleClassId = false,$articleId = false){
if($articleClassId){ if($articleClassId){
\Our\RedisHelper::cachedFunction(\Redis\Db10\ArticleRedisModel::getInstance(),array(&$this, 'getList'),array(),array($articleClassId)); \Our\RedisHelper::cachedFunction(\Redis\Db10\ArticleRedisModel::getInstance(),array(&$this, 'getList'),array(),array($articleClassId));
} }
......
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