Commit 7c9e8f99 authored by hujun's avatar hujun

转为报备客户名字

parent 26680f34
...@@ -93,7 +93,7 @@ class WatchShop extends Basic ...@@ -93,7 +93,7 @@ class WatchShop extends Basic
$appoint_watch = new AppointWatchShop(); $appoint_watch = new AppointWatchShop();
$appoint_watch->startTrans(); //开启事务 $appoint_watch->startTrans(); //开启事务
$fields = 'id,agents_id,house_title,house_id,expect_time,user_id,other_require'; $fields = 'id,agents_id,house_title,house_id,expect_time,user_id,other_require,appellation';
$where['id'] = $this->params['watch_id']; $where['id'] = $this->params['watch_id'];
$appoint_data = $appoint_watch->getAppointInfo($fields, $where); $appoint_data = $appoint_watch->getAppointInfo($fields, $where);
...@@ -117,9 +117,9 @@ class WatchShop extends Basic ...@@ -117,9 +117,9 @@ class WatchShop extends Basic
//todo 验证用户id是否正常 //todo 验证用户id是否正常
$userArr = $service_->verifyUser($user_id); $userArr = $service_->verifyUser($user_id);
$user_name = empty($userArr['user_name']) ? $appoint_data['appellation'] : $userArr["user_name"];
$is_ok = $service_->verifyReport($agent_id, $agent_phone, $agent_data['name'], $store_id, $user_id, $is_ok = $service_->verifyReport($agent_id, $agent_phone, $agent_data['name'], $store_id, $user_id,
$userArr["user_phone"], $userArr["user_name"], $house_id,$vehicle, $intro, $predict_see_time); $userArr["user_phone"], $user_name, $house_id,$vehicle, $intro, $predict_see_time);
if ($is_ok > 0) { if ($is_ok > 0) {
...@@ -127,11 +127,11 @@ class WatchShop extends Basic ...@@ -127,11 +127,11 @@ class WatchShop extends Basic
'applies_id' => $is_ok,'agents_id'=>$agent_id 'applies_id' => $is_ok,'agents_id'=>$agent_id
],$appoint_data['id']); ],$appoint_data['id']);
$push = new PushMessageService();
$push->pushReportMessage($appoint_data["house_id"], $agent_id);
$data['msg'] = '报备成功并通知经纪人'; $data['msg'] = '报备成功并通知经纪人';
$appoint_watch->commit(); //提交事务 $appoint_watch->commit(); //提交事务
$push = new PushMessageService();
$push->pushReportMessage($appoint_data["house_id"], $agent_id);
return $this->response("200", $data['msg']); return $this->response("200", $data['msg']);
} else { } else {
$appoint_watch->rollback(); //回滚事务 $appoint_watch->rollback(); //回滚事务
......
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