Commit ead1a4e2 authored by clone's avatar clone

bug

parent f5ac8c01
......@@ -189,9 +189,7 @@ class AppointmentTime extends Basic
$evaluateResult = $this->evaluateMode->getIsEvaluate(10, $val["id"], $params["user_id"]);
$result[$key]["is_evaluate"] = count($evaluateResult) > 0 ? 1 : 0;
}
return $result;
}
......
......@@ -41,11 +41,11 @@ class Sublet extends Basic
if (!isset($params["manage_type"])) {
$this->response("101", "经营业态不能为空");
return $this->response("101", "经营业态不能为空");
}
if (!isset($params["address_detail"])) {
$this->response("101", "详细地址不能为空");
return $this->response("101", "详细地址不能为空");
}
/* if (!isset($params["province"]) || !isset($params["province_code"]) || !isset($params["city"]) ||
......@@ -54,21 +54,21 @@ class Sublet extends Basic
}*/
if (!isset($params["province"]) || !isset($params["city"]) || !isset($params["district"])) {
$this->response("101", "省市区不能为空");
return $this->response("101", "省市区不能为空");
}
if (!isset($params["expected_rent"])) {
$this->response("101", "期望租金不能为空");
return $this->response("101", "期望租金不能为空");
}else{
$params["expected_rent"] = $params["expected_rent"] * 100;
}
if (!isset($params["appellation"])) {
$this->response("101", "称呼不能为空");
return $this->response("101", "称呼不能为空");
}
if (!isset($params["tel"]) || !preg_match('/1[345678]\d{9}/', $params["tel"])) {
$this->response("101", "手机号检验错误");
return $this->response("101", "手机号检验错误");
}
$params["create_time"] = date("Y-m-d H:i:s", time());
$params["update_time"] = date("Y-m-d H:i:s", time());
......
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