mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
闭包查询使用cache(true)抛出异常
This commit is contained in:
@@ -66,6 +66,7 @@ return [
|
|||||||
'relation data not exists' => '关联数据不存在',
|
'relation data not exists' => '关联数据不存在',
|
||||||
'relation not support' => '关联不支持',
|
'relation not support' => '关联不支持',
|
||||||
'chunk not support order' => 'Chunk不支持调用order方法',
|
'chunk not support order' => 'Chunk不支持调用order方法',
|
||||||
|
'closure not support cache(true)' => '使用闭包查询不支持cache(true),请指定缓存Key',
|
||||||
|
|
||||||
// 上传错误信息
|
// 上传错误信息
|
||||||
'unknown upload error' => '未知上传错误!',
|
'unknown upload error' => '未知上传错误!',
|
||||||
|
|||||||
@@ -2441,7 +2441,7 @@ class Query
|
|||||||
try {
|
try {
|
||||||
return md5($prefix . serialize($options) . serialize($bind));
|
return md5($prefix . serialize($options) . serialize($bind));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return;
|
throw new Exception('closure not support cache(true)');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user