Skip to content

Commit e534a5a

Browse files
authored
Update WechatCache.php
1 parent eb00e7a commit e534a5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

common/components/WechatCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ public function deleteMultiple($keys)
100100
*/
101101
public function has($key)
102102
{
103-
return (Yii::$app->cache->exists($key) || $this->setTime > time() - 1);
103+
return (Yii::$app->cache->get($key) || $this->setTime > (time() - 1));
104104
}
105-
}
105+
}

0 commit comments

Comments
 (0)