mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
改进异常捕获
This commit is contained in:
8
library/think/cache/driver/Redis.php
vendored
8
library/think/cache/driver/Redis.php
vendored
@@ -84,7 +84,13 @@ class Redis extends Driver
|
|||||||
return $default;
|
return $default;
|
||||||
}
|
}
|
||||||
|
|
||||||
return unserialize($value);
|
try {
|
||||||
|
$result = unserialize($value);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
$result = $default;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user