Commit 2eb26475 authored by clone's avatar clone

bug

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