Commit 0ac45d7b authored by hujun's avatar hujun

评价

parent 000ea922
...@@ -357,7 +357,7 @@ class AppointmentTime extends Basic ...@@ -357,7 +357,7 @@ class AppointmentTime extends Basic
// $where['user_id'] = 3; // $where['user_id'] = 3;
$where['status'] = 0; $where['status'] = 0;
$where['type'] = ['in', '0,3']; $where['type'] = ['in', '0,3'];
$field = 'id,operation_id,house_id,message,type'; $field = 'id,operation_id,house_id,message,type,other_id';
$id = $m_push->getListByWhere($field, $where, 1, 1); $id = $m_push->getListByWhere($field, $where, 1, 1);
if (!empty($id[0]['id'])) { if (!empty($id[0]['id'])) {
...@@ -370,6 +370,7 @@ class AppointmentTime extends Basic ...@@ -370,6 +370,7 @@ class AppointmentTime extends Basic
$data['type'] = $id[0]['type']; $data['type'] = $id[0]['type'];
$data['operation_id'] = $id[0]['operation_id']; $data['operation_id'] = $id[0]['operation_id'];
$data['house_id'] = $id[0]['house_id']; $data['house_id'] = $id[0]['house_id'];
$data['record_id'] = $id[0]['other_id'];
} }
......
...@@ -68,11 +68,13 @@ class PushClientService ...@@ -68,11 +68,13 @@ class PushClientService
$push_data = $this->m_push->getDateLimit($field, $where, 100); $push_data = $this->m_push->getDateLimit($field, $where, 100);
foreach ($push_data['data'] as $k => $v) { foreach ($push_data['data'] as $k => $v) {
$id = $v['user_id'];
switch ($v['type']) { switch ($v['type']) {
case 0 : case 0 :
$title = "评价经纪人"; $title = "评价经纪人";
$type = 'evaluate'; $type = 'evaluate';
$content = $v['message']; $content = $v['message'];
$id = $v['other_id'];
break; break;
case 1: case 1:
$title = "新人专享返现红包"; $title = "新人专享返现红包";
...@@ -89,7 +91,7 @@ class PushClientService ...@@ -89,7 +91,7 @@ class PushClientService
$type = 'evaluate_again'; $type = 'evaluate_again';
$content = $v['message']; $content = $v['message'];
} }
$this->pushAgentAllDeviceId($v['operation_id'], $title, $content, $type, $v['user_id'], $is_forbidden, $v['house_id'], $v['order_id'], $v['message']); $this->pushAgentAllDeviceId($v['operation_id'], $title, $content, $type, $id, $is_forbidden, $v['house_id'], $v['order_id'], $v['message']);
$id_array[] = $v['id']; $id_array[] = $v['id'];
} }
......
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