作者 邓超

m

... ... @@ -282,7 +282,7 @@ trait DbQuery {
}
$query = $this->query($sql);
if($query){
$data = $query->fetch($flag);
$data = $flag? $query->fetch($flag) : $query->fetch();
if($this->cache){
redis()->set($key,$data,$this->cache);
$this->cache = 0;
... ...