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
e0ae96c1
Commit
e0ae96c1
authored
Mar 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报备推送
parent
da81bc7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
ReportService.php
application/api_broker/service/ReportService.php
+8
-7
No files found.
application/api_broker/service/ReportService.php
View file @
e0ae96c1
...
@@ -75,19 +75,20 @@ class ReportService
...
@@ -75,19 +75,20 @@ class ReportService
$predict_see_time
);
$predict_see_time
);
if
(
$id
>
0
)
{
if
(
$id
>
0
)
{
$agent
=
new
GHousesToAgents
();
$device_id
=
$agent
->
getAgentList
(
$house_ids
);
$ge_tui
=
new
GeTuiUntils
();
foreach
(
$device_id
as
$k
=>
$v
)
{
$content
=
"
{
$v
[
'store_name'
]
}
店
{
$agent_name
}
约带看xxx商铺"
;
$ge_tui
->
public_push_message_for_one
(
$v
[
'id'
],
$v
[
'device_id'
],
'报备'
,
$content
);
}
$house_arr
=
explode
(
","
,
$house_ids
);
$house_arr
=
explode
(
","
,
$house_ids
);
$order_arr
=
[];
$order_arr
=
[];
$agent
=
new
GHousesToAgents
();
$ge_tui
=
new
GeTuiUntils
();
foreach
(
$house_arr
as
$k
=>
$v
)
{
foreach
(
$house_arr
as
$k
=>
$v
)
{
//todo 批量插入到数据库
//todo 批量插入到数据库
$order_no
=
$this
->
createOrderNumber
();
$order_no
=
$this
->
createOrderNumber
();
array_push
(
$order_arr
,
$this
->
orderBin
(
$order_no
,
$id
,
$v
));
array_push
(
$order_arr
,
$this
->
orderBin
(
$order_no
,
$id
,
$v
));
$device_id
=
$agent
->
getAgentList
(
$v
);
foreach
(
$device_id
as
$k
=>
$v
)
{
$content
=
"【
{
$v
[
'store_name'
]
}
】店【
{
$agent_name
}
】约带看【
{
$order_arr
[
'house_title'
]
}
】商铺"
;
$ge_tui
->
public_push_message_for_one
(
$v
[
'id'
],
$v
[
'device_id'
],
'报备'
,
$content
);
}
}
}
//todo 保存order表
//todo 保存order表
return
$this
->
orderModel
->
insertOrderByAll
(
$order_arr
);
return
$this
->
orderModel
->
insertOrderByAll
(
$order_arr
);
...
...
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