Commit a12a11cf authored by zw's avatar zw

报备

parent b2c65f46
...@@ -43,7 +43,7 @@ class Report extends Basic ...@@ -43,7 +43,7 @@ class Report extends Basic
{ {
$params = $this->params; $params = $this->params;
if (!isset($params['report_agent_id']) || !isset($params['report_agent_phone']) || !isset($params['report_store_id']) || !isset($params['user_id']) || if (!isset($params['report_agent_id']) || !isset($params['report_agent_phone']) || !isset($params['report_store_id']) || !isset($params['user_id']) ||
!isset($params['house_ids']) || !isset($params['vehicle'])|| !isset($params['site_id'])) { !isset($params['house_ids']) || !isset($params['vehicle'])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
...@@ -68,7 +68,6 @@ class Report extends Basic ...@@ -68,7 +68,6 @@ class Report extends Basic
$vehicle = $params["vehicle"]; $vehicle = $params["vehicle"];
$intro = $params["intro"]; $intro = $params["intro"];
$predict_see_time = $params["predict_see_time"]; $predict_see_time = $params["predict_see_time"];
$site_id = $params["site_id"];
//todo 验证用户id是否正常 //todo 验证用户id是否正常
$userArr = $this->service_->verifyUser($user_id); $userArr = $this->service_->verifyUser($user_id);
...@@ -78,7 +77,7 @@ class Report extends Basic ...@@ -78,7 +77,7 @@ class Report extends Basic
$is_ok = $this->service_->verifyReport($agent_id, $agent_phone, $this->agentName, $store_id, $user_id, $userArr["user_phone"], $is_ok = $this->service_->verifyReport($agent_id, $agent_phone, $this->agentName, $store_id, $user_id, $userArr["user_phone"],
$userArr["user_name"], $house_ids, $vehicle, $intro, $predict_see_time); $userArr["user_name"], $house_ids, $vehicle, $intro, $predict_see_time);
if ($is_ok > 0) { if ($is_ok > 0) {
$this->userService->setUserSites($user_id, $site_id);//设置用户站点 朱伟 2018-10-22 $this->userService->setUserSites($user_id, $this->siteId);//设置用户站点 朱伟 2018-10-22
return $this->response("200", "request success", []); return $this->response("200", "request success", []);
} else { } else {
return $this->response("101", "save exception"); return $this->response("101", "save 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