mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
修正Query类使用闭包查询后的cache问题
This commit is contained in:
@@ -2436,8 +2436,12 @@ class Query
|
|||||||
|
|
||||||
if (isset($data)) {
|
if (isset($data)) {
|
||||||
return 'think:' . $prefix . (is_array($options['table']) ? key($options['table']) : $options['table']) . '|' . $data;
|
return 'think:' . $prefix . (is_array($options['table']) ? key($options['table']) : $options['table']) . '|' . $data;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
return md5($prefix . serialize($options) . serialize($bind));
|
return md5($prefix . serialize($options) . serialize($bind));
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user