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
da81bc7f
Commit
da81bc7f
authored
Mar 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报备推送
parent
78799e06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ReportService.php
application/api_broker/service/ReportService.php
+13
-0
No files found.
application/api_broker/service/ReportService.php
View file @
da81bc7f
...
...
@@ -2,7 +2,9 @@
namespace
app\api_broker\service
;
use
app\api\untils\GeTuiUntils
;
use
app\model\GHouses
;
use
app\model\GHousesToAgents
;
use
app\model\HouseInfos
;
use
app\model\OrderModel
;
use
app\model\OReportModel
;
...
...
@@ -50,6 +52,7 @@ class ReportService
/**
* 生成报备和保存订单
*
* @param $agent_id
* @param $agent_name
* @param $store_id
...
...
@@ -61,6 +64,9 @@ class ReportService
* @param $intro
* @param $predict_see_time
* @return int
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
verifyReport
(
$agent_id
,
$agent_name
,
$store_id
,
$user_id
,
$user_phone
,
$user_name
,
$house_ids
,
$vehicle
,
$intro
,
$predict_see_time
)
{
...
...
@@ -69,6 +75,13 @@ class ReportService
$predict_see_time
);
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
);
$order_arr
=
[];
foreach
(
$house_arr
as
$k
=>
$v
)
{
...
...
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