Commit 606f3947 authored by hujun's avatar hujun

type

parent b78ce3a3
......@@ -78,6 +78,7 @@ class PushMessageService
$agent_id = [];
if ($type == 1) {
$data['message'] = "客户{$report_data['user_name']}进场【{$report_data['house_title']}】商铺";
$push_type = 5;
} else {
$data['message'] = "【{$report_data['house_title']}】商铺收款";
......@@ -97,6 +98,7 @@ class PushMessageService
if (!empty($agent_house_id)) {
$agent_id[] = $agent_house_id; //
}
$push_type = 6;
}
$where['store_id'] = $report_data['report_store_id'];
$where['level'] = [ 'in', '20,40' ];
......@@ -104,7 +106,8 @@ class PushMessageService
$agent_id[] = $report_data['report_agent_id'];
$agent_id[] = $agent_store['id'];
$this->record(2, 0, $agent_id, $operation_id, $data);
$this->record($push_type, 0, $agent_id, $operation_id, $data);
// $this->pushAgentAllDeviceId($report_data['report_agent_id'], $title, $content);
// $this->pushAgentAllDeviceId($agent_store['id'], $title, $content);
return;
......@@ -297,6 +300,12 @@ class PushMessageService
case 4 :
$result = $m_push->addAgentIdArray($agent_id, $operation_id, $type, $data);
break;
case 5 :
$result = $m_push->addAgentIdArray($agent_id, $operation_id, $type, $data);
break;
case 6 :
$result = $m_push->addAgentIdArray($agent_id, $operation_id, $type, $data);
break;
default :
$result = $m_push->addData($data, $operation_id, $type);
}
......@@ -342,10 +351,10 @@ class PushMessageService
$is_forbidden = 1;
break;
case 5:
$title = '收款';
$title = '进场';
break;
case 6:
$title = '进场';
$title = '收款';
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