Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
2a6cf80f
Commit
2a6cf80f
authored
Jan 14, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收信息人
parent
47d43522
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
PushMessageService.php
application/api_broker/service/PushMessageService.php
+5
-4
No files found.
application/api_broker/service/PushMessageService.php
View file @
2a6cf80f
...
...
@@ -43,6 +43,7 @@ class PushMessageService
public
function
pushReportMessage
(
$house_id
,
$agent_id
,
$type
,
$operation_id
)
{
try
{
$agent_id_arr
=
[];
$house_agent
=
new
GHousesToAgents
();
$agent
=
new
AAgents
();
$house
=
new
GHouses
();
...
...
@@ -52,15 +53,15 @@ class PushMessageService
$agent_name
=
$agent
->
getAgentsStoreById
([
'a.id'
=>
$agent_id
],
'name,store_name'
);
$house_data
=
$house
->
getHouseDetail
(
'internal_title'
,
[
'id'
=>
$house_id
]);
$order_id
=
$m_report
->
getReportOrder
(
'b.id'
,[
'a.report_agent_id'
=>
$agent_id
]);
foreach
(
$data
as
$k
=>
$v
)
{
$content
=
"【
{
$agent_name
[
'store_name'
]
}
】店【
{
$agent_name
[
'name'
]
}
】约带看【
{
$house_data
[
'internal_title'
]
}
】商铺"
;
// $this->pushAgentAllDeviceId($v['id'], '报备', $content);
$save
[
'message'
]
=
$content
;
$save
[
'order_id'
]
=
$order_id
[
'id'
];
$save
[
'house_id'
]
=
$house_id
;
$this
->
record
(
7
,
0
,
[
$agent_id
],
$operation_id
,
$save
);
foreach
(
$data
as
$k
=>
$v
)
{
// $this->pushAgentAllDeviceId($v['id'], '报备', $content);
$agent_id_arr
[]
=
$v
[
'id'
];
}
$this
->
record
(
7
,
$house_id
,
$agent_id_arr
,
$operation_id
,
$save
);
$result
=
true
;
}
catch
(
\Exception
$e
)
{
$result
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment