mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +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 unserialize($value);
|
||||
try {
|
||||
$result = unserialize($value);
|
||||
} catch (\Exception $e) {
|
||||
$result = $default;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user