Commit b251f0a0 authored by hujun's avatar hujun

site_id

parent 4697dc5a
...@@ -78,14 +78,18 @@ class OrderLog extends Basic ...@@ -78,14 +78,18 @@ class OrderLog extends Basic
if (!$is_execute) { if (!$is_execute) {
return $this->response("101", "请不要重复提交"); return $this->response("101", "请不要重复提交");
} }
$longitude = $params['longitude'];
$latitude = $params['latitude'];
unset($params["march_in_img"]); unset($params["march_in_img"]);
unset($params["latitude"]);
unset($params["longitude"]);
$insert_id = $this->o_march_in_model->addMarchIn($params); $insert_id = $this->o_march_in_model->addMarchIn($params);
if ($insert_id > 0) { if ($insert_id > 0) {
$oImgModel = new OImg(); $oImgModel = new OImg();
$oImgModel->addImgAll($insert_id, 1, $march_in_img); $oImgModel->addImgAll($insert_id, 1, $march_in_img);
$pushMarchIn = new PushMessageService(); $pushMarchIn = new PushMessageService();
$pushMarchIn->pushMarchInMessage($params["report_id"], 1, $this->agentId, $this->siteId); //推送 $pushMarchIn->pushMarchInMessage($params["report_id"], 1, $this->agentId, 0, $this->siteId); //推送
//评价经纪人 //评价经纪人
$push_client = new PushClientService(); $push_client = new PushClientService();
...@@ -94,7 +98,7 @@ class OrderLog extends Basic ...@@ -94,7 +98,7 @@ class OrderLog extends Basic
//经纬度 //经纬度
if (!empty($params['longitude']) && $params['latitude']) { if (!empty($params['longitude']) && $params['latitude']) {
$s_location = new LocationService(); $s_location = new LocationService();
$s_location->add($this->agentId, $params['longitude'], $params['latitude'], 1, $insert_id); $s_location->add($this->agentId, $longitude, $latitude, 1, $insert_id);
} }
//对客户发送短信通知 7151 //对客户发送短信通知 7151
// $this->sendSMSForUser($params["report_id"]); // $this->sendSMSForUser($params["report_id"]);
......
...@@ -195,6 +195,7 @@ class Cost extends Basic ...@@ -195,6 +195,7 @@ class Cost extends Basic
case 4 : case 4 :
$where['a.status'] = 4;break; //已出账 $where['a.status'] = 4;break; //已出账
case 5 : case 5 :
$where['a.site_id'] = $this->siteId;
$where['a.status'] = 1;break; //行政审核 $where['a.status'] = 1;break; //行政审核
} }
} }
......
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