Commit ead1a4e2 authored by clone's avatar clone

bug

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