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
db6d3978
Commit
db6d3978
authored
Apr 21, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
49f537eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
FindShop.php
application/api/controller/FindShop.php
+3
-4
PushMessageService.php
application/api_broker/service/PushMessageService.php
+16
-0
No files found.
application/api/controller/FindShop.php
View file @
db6d3978
...
...
@@ -3,6 +3,7 @@
namespace
app\api\controller
;
use
app\api\extend\Basic
;
use
app\api_broker\service\PushMessageService
;
use
app\index\service\HouseService
;
use
app\model\GHouses
;
use
app\model\GHousesImgs
;
...
...
@@ -87,12 +88,10 @@ class FindShop extends Basic
}
$updateParams
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$id
=
$findShopModel
->
addFindShop
(
$updateParams
);
}
if
(
$params
[
"id"
])
{
$pushService
=
new
PushMessageService
();
$pushService
->
pushFindShopMessage
(
$params
[
"user_id"
]);
}
if
(
$id
>
0
)
{
return
$this
->
response
(
"200"
,
"数据保存成功"
,
[
"id"
=>
$id
]);
}
else
{
...
...
application/api_broker/service/PushMessageService.php
View file @
db6d3978
...
...
@@ -487,4 +487,19 @@ class PushMessageService
}
return
$result
;
}
public
function
pushFindShopMessage
(
$user_id
)
{
$data
[
'message'
]
=
"你的客户(ID:
{
$user_id
}
)提交了委托找铺需求,请到电脑端查看"
;
$m_user
=
new
Users
();
$client_agent
=
$m_user
->
getUserByWhereValue
(
'agent_id'
,
[
'id'
=>
$user_id
]);
$agent_id
=
0
;
if
(
count
(
$client_agent
)
>
0
)
{
$agent_id
=
$client_agent
;
}
$push_type
=
12
;
$this
->
record
(
$push_type
,
0
,
$agent_id
,
0
,
$data
);
return
;
}
}
\ No newline at end of file
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