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
c69a3a44
Commit
c69a3a44
authored
Dec 03, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评价经纪人推送
parent
d569088c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
PushClientService.php
application/api/service/PushClientService.php
+7
-0
OrderLog.php
application/api_broker/controller/OrderLog.php
+1
-1
OPushMessageModel.php
application/model/OPushMessageModel.php
+1
-1
No files found.
application/api/service/PushClientService.php
View file @
c69a3a44
...
...
@@ -9,6 +9,7 @@
namespace
app\api\service
;
use
app\api\untils\GeTuiUtils
;
use
app\model\AAgents
;
use
app\model\ChatUser
;
use
app\model\ChatUserExt
;
use
app\model\OPushMessageModel
;
...
...
@@ -40,6 +41,12 @@ class PushClientService
$report
=
new
OReportModel
();
$user_id
=
$report
->
getFieldValue
(
'user_id'
,
$report_id
);
if
(
empty
(
$message
))
{
$m_agent
=
new
AAgents
();
$name
=
$m_agent
->
getAgentsById
(
58
,
'name'
);
$message
=
'同联商业邀请您评价经纪人'
.
$name
.
'对商铺的带看服务'
;
}
$data
[
'message'
]
=
$message
;
$data
[
'order_id'
]
=
$order_id
;
$data
[
'house_id'
]
=
$house_id
;
...
...
application/api_broker/controller/OrderLog.php
View file @
c69a3a44
...
...
@@ -132,7 +132,7 @@ class OrderLog extends Basic
//评价经纪人
$push_client
=
new
PushClientService
();
$push_client
->
record
((
int
)
$params
[
"report_id"
],
(
int
)
$params
[
"order_id"
],
0
,
'
评价经纪人'
,
$this
->
agentId
);
$push_client
->
record
((
int
)
$params
[
"report_id"
],
(
int
)
$params
[
"order_id"
],
0
,
'
'
,
(
int
)
$this
->
agentId
);
return
$this
->
response
(
"200"
,
"request success"
,
[]);
}
else
{
return
$this
->
response
(
"101"
,
"request faild"
);
...
...
application/model/OPushMessageModel.php
View file @
c69a3a44
...
...
@@ -13,7 +13,7 @@ use think\Db;
class
OPushMessageModel
{
protected
$table
=
"
o
_push_message"
;
protected
$table
=
"
u
_push_message"
;
private
$db_
;
public
function
__construct
()
...
...
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