Commit bbd97aed authored by zhuwei's avatar zhuwei

bug

parent b0ef7c3a
...@@ -514,9 +514,9 @@ class User extends Basic ...@@ -514,9 +514,9 @@ class User extends Basic
$where['city'] = trim($this->city); $where['city'] = trim($this->city);
$field = 'max(id) as max_id'; $field = 'max(id) as max_id';
$order = 'id asc'; $order = 'id asc';
$max_id = $user->getLastOrNextUserID($where, $field, $limit = '', $order); $max_id = $user->getLastOrNextUserID($where, $field, $limit = '', $order, $type);
$field = 'MIN(id) as min_id'; $field = 'MIN(id) as min_id';
$min_id = $user->getLastOrNextUserID($where, $field, $limit = '', $order); $min_id = $user->getLastOrNextUserID($where, $field, $limit = '', $order, $type);
return $this->response("200", "success!", [ return $this->response("200", "success!", [
'user_id' => $user_res[0]['id'], 'user_id' => $user_res[0]['id'],
'max_user_id' => $max_id[0]['max_id'], 'max_user_id' => $max_id[0]['max_id'],
......
...@@ -903,6 +903,8 @@ class Users extends Model ...@@ -903,6 +903,8 @@ class Users extends Model
} }
//echo $this->getLastSql(); //echo $this->getLastSql();
//dump($this->getLastSql());exit;
return $result; return $result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment