Commit 0ac45d7b authored by hujun's avatar hujun

评价

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