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