修正Query类使用闭包查询后的cache问题

This commit is contained in:
thinkphp
2018-04-09 11:38:24 +08:00
parent e277b20737
commit 142934607d

View File

@@ -2436,8 +2436,12 @@ class Query
if (isset($data)) {
return 'think:' . $prefix . (is_array($options['table']) ? key($options['table']) : $options['table']) . '|' . $data;
} else {
}
try {
return md5($prefix . serialize($options) . serialize($bind));
} catch (\Exception $e) {
return;
}
}