改进一处异常错误

This commit is contained in:
thinkphp
2017-09-06 10:18:06 +08:00
parent 067237fa1f
commit accd0b6db4

View File

@@ -2569,7 +2569,7 @@ class Query
* @param string $column 分批处理的字段名 * @param string $column 分批处理的字段名
* @param string $order 排序规则 * @param string $order 排序规则
* @return boolean * @return boolean
* @throws DbException * @throws \LogicException
*/ */
public function chunk($count, $callback, $column = null, $order = 'asc') public function chunk($count, $callback, $column = null, $order = 'asc')
{ {
@@ -2585,7 +2585,7 @@ class Query
} }
if (isset($options['order'])) { if (isset($options['order'])) {
if (App::$debug) { if (App::$debug) {
throw new DbException('chunk not support call order'); throw new \LogicException('chunk not support call order');
} }
unset($options['order']); unset($options['order']);
} }