添加lang类单元测试

This commit is contained in:
thinkphp
2016-02-28 13:41:16 +08:00
parent 8d79e07dc5
commit 58eebe7763
5 changed files with 73 additions and 8 deletions

View File

@@ -536,8 +536,7 @@ class Model
// 根据主键查询
if (is_array($options)) {
// 判断是否索引数组
$keys = array_keys($options);
if (array_keys($keys) === $keys) {
if (key($options) === 0) {
$where[$pk] = ['in', $options];
} else {
return;