Commit db9083ce authored by clone's avatar clone

bug

parent 0eef86be
......@@ -65,11 +65,14 @@ class WxSdk extends Basic
return $this->response("101", "request error:" . $exception);
}
$conditions["buyer_id"] = $id;
$fields = "id";
$user_info = $this->userModel->getUserByWhere($conditions, $fields);
$fields = "id";
$user_info = $this->userModel->getUserByWhere($conditions, $fields);
$user_id = 0;
if (count($user_info) > 0) {
$user_id = $user_info[0]['id'];
}
if ($id > 0) {
return $this->response("200", "request success", [ "user_id" => $user_info[0]["id"] ]);
return $this->response("200", "request success", [ "user_id" => $user_id ]);
} else {
return $this->response("101", "request exception");
}
......
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