Commit 2eb26475 authored by clone's avatar clone

bug

parent 812358cb
......@@ -145,7 +145,7 @@ class Shop extends Basic
$order_ = "id desc";
break;
default:
$this->response("101", "请求数据异常");
return $this->response("101", "请求数据异常");
}
if (!empty($conditions) ) {
$conditions['status'] = array( 'eq', 1 ); //只显示上架
......
......@@ -22,7 +22,7 @@ class Users extends Model
*/
public function selectUser($userId, $fields = 'id,user_phone')
{
$param["status"] = array( "eq", 0 );
$param["status"] = array( "in", [-1,0] );
$data = $this->field($fields)
->where($param)
->find($userId);
......
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