错误编码

This commit is contained in:
thinkphp
2015-12-12 08:16:59 +08:00
parent 28508f690a
commit af19146ec0
8 changed files with 19 additions and 17 deletions

View File

@@ -969,7 +969,7 @@ class Model
} elseif (is_string($data)) {
parse_str($data, $data);
} elseif (!is_array($data)) {
throw new Exception(Lang::get('_DATA_TYPE_INVALID_'));
throw new Exception('data type invalid', 10300);
}
$this->data = $data;
return $this;
@@ -1099,7 +1099,7 @@ class Model
$options = $union;
}
} else {
throw new Exception(Lang::get('_DATA_TYPE_INVALID_'));
throw new Exception('data type invalid', 10300);
}
$this->options['union'][] = $options;
return $this;