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
976383f2
Commit
976383f2
authored
May 17, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交成报告推送修改
parent
97e7f23c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Broker.php
application/api/controller/Broker.php
+1
-1
PushMessageService.php
application/api_broker/service/PushMessageService.php
+6
-2
No files found.
application/api/controller/Broker.php
View file @
976383f2
...
@@ -235,6 +235,6 @@ class Broker extends Basic{
...
@@ -235,6 +235,6 @@ class Broker extends Basic{
$push
=
new
PushMessageService
();
$push
=
new
PushMessageService
();
// $push->pushReportMessage(2362,3670,1);
// $push->pushReportMessage(2362,3670,1);
// $push->pushMarchInMessage(26964);
// $push->pushMarchInMessage(26964);
$push
->
pushBargain
CommissionMessage
(
'小杨-业务员'
,
3
,
1553
9
);
$push
->
pushBargain
Message
(
2698
9
);
}
}
}
}
application/api_broker/service/PushMessageService.php
View file @
976383f2
...
@@ -98,12 +98,15 @@ class PushMessageService
...
@@ -98,12 +98,15 @@ class PushMessageService
public
function
pushBargainMessage
(
$report_id
=
0
){
public
function
pushBargainMessage
(
$report_id
=
0
){
$report
=
new
OReportModel
();
$report
=
new
OReportModel
();
$feed
=
new
PushFeed
();
$feed
=
new
PushFeed
();
$field
=
'house_id,house_title,report_agent_name,report_store_id,user_id,report_agent_id'
;
$agent
=
new
AAgents
();
$field
=
'house_id,house_title,report_agent_name,user_id,report_agent_id'
;
$report_data
=
$report
->
getReportOrder
(
$field
,
[
'a.id'
=>
$report_id
]);
$report_data
=
$report
->
getReportOrder
(
$field
,
[
'a.id'
=>
$report_id
]);
//查询经纪人门店和部门信息
$agent_store
=
$agent
->
verifyUser
(
'store_id'
,
''
,
[
'id'
=>
$report_data
[
'report_agent_id'
]]);
$store
=
new
AStore
();
$store
=
new
AStore
();
$store_name
=
$store
->
getStoreDistrictName
(
$
report_data
[
'report_
store_id'
]);
$store_name
=
$store
->
getStoreDistrictName
(
$
agent_store
[
'
store_id'
]);
$title
=
'成交就是这么简单'
;
$title
=
'成交就是这么简单'
;
$feed
->
editData
([
$feed
->
editData
([
...
@@ -123,6 +126,7 @@ class PushMessageService
...
@@ -123,6 +126,7 @@ class PushMessageService
$content
=
"恭喜【
{
$store_name
}
】店【
{
$report_data
[
'report_agent_name'
]
}
】成交【
{
$report_data
[
'house_title'
]
}
】商铺一套"
;
$content
=
"恭喜【
{
$store_name
}
】店【
{
$report_data
[
'report_agent_name'
]
}
】成交【
{
$report_data
[
'house_title'
]
}
】商铺一套"
;
$url
=
$this
->
push
->
http_host
()
.
'/app/dist/index.html#/feeds?id='
.
$feed
->
id
;
$url
=
$this
->
push
->
http_host
()
.
'/app/dist/index.html#/feeds?id='
.
$feed
->
id
;
$feed
->
editData
([
'link'
=>
$url
],
$feed
->
id
);
$feed
->
editData
([
'link'
=>
$url
],
$feed
->
id
);
$this
->
push
->
push_message_for_all
(
$title
,
$content
,
$url
);
$this
->
push
->
push_message_for_all
(
$title
,
$content
,
$url
);
return
;
return
;
...
...
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