Commit c51bd518 authored by hujun's avatar hujun

追评文字

parent 4adfc07b
......@@ -346,19 +346,28 @@ class AppointmentTime extends Basic
try {
$m_push = new OPushMessageModel();
$where['user_id'] = $this->userId;
// $where['user_id'] = 122;
// $where['user_id'] = 135399;
$where['status'] = 0;
$where['type'] = 0;
$where['type'] = ['in', '0,3'];
$id = $m_push->getListByWhere('id,operation_id,message', $where, 1, 1);
$id = $m_push->getListByWhere('id,operation_id,message,type', $where, 1, 1);
if (empty($id[0]['id'])) {
$data['is_alert'] = 0;
} else {
$data['name'] = $id[0]['message'];
$data['is_alert'] = 1;
$type = $id[0]['type'];
$str = '同联商业邀请您评价经纪人\n';
switch ($type) {
case 0 :
$data['alert_msg'] = $str.$id[0]['message'].'的商铺带看服务';break;
case 3 :
$data['alert_msg'] = $str.$id[0]['message'].'的商铺成交服务';break;
}
}
} catch (\Exception $e) {
$data = [];
$msg = "内部错误:".$e->getMessage();
......
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