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
1947a05e
Commit
1947a05e
authored
Apr 09, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推送记录
parent
4095398c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
Square.php
application/api_broker/controller/Square.php
+4
-4
SquareService.php
application/api_broker/service/SquareService.php
+6
-2
No files found.
application/api_broker/controller/Square.php
View file @
1947a05e
...
...
@@ -89,15 +89,15 @@ class Square extends Basic
}
if
(
isset
(
$params
[
'level'
]))
{
if
(
!
isset
(
$params
[
'comment_id'
])
or
!
isset
(
$params
[
'agent_id_b'
])
or
!
isset
(
$params
[
'comment'
]))
{
if
(
!
isset
(
$params
[
'comment_id'
])
or
!
isset
(
$params
[
'agent_id_b'
])
or
!
isset
(
$params
[
'comment'
])
or
!
isset
(
$params
[
'square_id'
])
)
{
return
$this
->
response
(
"101"
,
"参数不全"
);
}
$result
=
$this
->
s_square
->
addBCommentExt
(
$params
[
'comment_id'
],
$this
->
agentId
,
$params
[
'agent_id_b'
],
$params
[
'comment'
],
$params
[
'level'
]);
$result
=
$this
->
s_square
->
addBCommentExt
(
$params
[
'comment_id'
],
$this
->
agentId
,
$params
[
'agent_id_b'
],
$params
[
'comment'
],
$params
[
'level'
]
,
$this
->
agentName
,
$params
[
'square_id'
]
);
}
else
{
if
(
!
isset
(
$params
[
'square_id'
])
or
!
isset
(
$params
[
'
square
_id'
])
or
!
isset
(
$params
[
'comment'
]))
{
if
(
!
isset
(
$params
[
'square_id'
])
or
!
isset
(
$params
[
'
author
_id'
])
or
!
isset
(
$params
[
'comment'
]))
{
return
$this
->
response
(
"101"
,
"参数不全"
);
}
$result
=
$this
->
s_square
->
addBComent
(
$params
[
'square_id'
],
$params
[
'comment'
],
$this
->
agentId
);
$result
=
$this
->
s_square
->
addBComent
(
$params
[
'square_id'
],
$params
[
'comment'
],
$this
->
agentId
,
$this
->
params
[
'author_id'
],
$this
->
agentName
);
}
if
(
$result
){
...
...
application/api_broker/service/SquareService.php
View file @
1947a05e
...
...
@@ -223,7 +223,7 @@ class SquareService
public
function
addBComent
(
$square_id
,
$comment
,
$agent_id
)
public
function
addBComent
(
$square_id
,
$comment
,
$agent_id
,
$agent_b
,
$agent_name
)
{
$insert
[
"square_id"
]
=
$square_id
;
//文章id
$insert
[
"comment"
]
=
$comment
;
//评价内容
...
...
@@ -234,13 +234,15 @@ class SquareService
$res
=
$this
->
m_coment
->
saveComment
(
$insert
);
//int(1)
if
(
$res
==
1
){
$push_service
=
new
PushMessageService
();
$push_service
->
record
(
10
,
$square_id
,
$agent_b
,
$agent_id
,
[
'message'
=>
$agent_name
.
'评论了你的开盘'
]);
return
true
;
}
else
{
return
false
;
}
}
public
function
addBCommentExt
(
$comment_id
,
$agent_id_a
,
$agent_id_b
,
$comment
,
$level
)
public
function
addBCommentExt
(
$comment_id
,
$agent_id_a
,
$agent_id_b
,
$comment
,
$level
,
$agent_name
,
$square_id
)
{
$insert
[
"comment_id"
]
=
$comment_id
;
//comment_id
$insert
[
"agent_id_a"
]
=
$agent_id_a
;
//经纪人a 回复人
...
...
@@ -252,6 +254,8 @@ class SquareService
$res
=
$this
->
m_coment_ext
->
saveCommentExt
(
$insert
);
//int(1)
if
(
$res
==
1
){
$push_service
=
new
PushMessageService
();
$push_service
->
record
(
11
,
$square_id
,
$agent_id_a
,
$agent_id_b
,
[
'message'
=>
$agent_name
.
'回复了你的开盘评论'
]);
return
true
;
}
else
{
return
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