由于做了二開的問題,但是發(fā)現(xiàn)抽獎次數(shù)在前端顯示不對,也不知道是緩存的問題還是怎么回事,明明沒有次數(shù)了,但是前端依然顯示的還有次數(shù)并且還可以繼續(xù)抽獎。好像中獎商品未領(lǐng)取的也不會扣除次數(shù)。
會是什么原因造成的?
是這里 :
app\services\activity\lottery\LuckLotteryServices.php
$cache = CacheService::redisHandler();
// $num = (int)$this->getCacheLotteryNum($uid, $type);
$cache->set($timeKey, bcadd((string)time(), (string)$this->luck_cache_time), bcadd('10', (string)$this->luck_cache_time));
緩存沒有即時(shí)更新造成的?還是什么原因?