Commit a240d34c authored by clone's avatar clone

bug

parent 1d4da3d7
......@@ -11,6 +11,7 @@ namespace app\api\controller;
*/
use app\api\extend\Basic;
use app\model\SubletModel;
use think\Exception;
use think\Request;
class Sublet extends Basic
......@@ -45,13 +46,21 @@ class Sublet extends Basic
$fields = 'id,manage_type,address_detail,FORMAT(expected_rent/100,2) as expected_rent,create_time,status,house_id';
try {
$result = $this->subletMode->getSublet($pageNo, $pageSize, "id desc", $fields, $select_);
if (count($result) > 0)
if (count($result) > 0) {
return $this->response("200", "success", $result);
} else {
return $this->response("200", "request null");
}
} catch (Exception $exception) {
return $this->response("101", "请求异常,请稍后再试");
}
}
public function addSublet()
{
$params = $this->params;
......
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