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
0bee5b33
Commit
0bee5b33
authored
May 09, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
喜报详情修改
parent
fedc904c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
Feed.php
application/api_broker/controller/Feed.php
+6
-1
PushMessageService.php
application/api_broker/service/PushMessageService.php
+5
-6
No files found.
application/api_broker/controller/Feed.php
View file @
0bee5b33
...
@@ -99,7 +99,7 @@ class Feed extends Basic
...
@@ -99,7 +99,7 @@ class Feed extends Basic
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$push
=
new
PushFeed
();
$push
=
new
PushFeed
();
$field
=
'id,create_time,house_title,click_num,content'
;
$field
=
'id,create_time,house_title,click_num,content
,type
'
;
if
(
empty
(
$this
->
params
[
'id'
]))
{
if
(
empty
(
$this
->
params
[
'id'
]))
{
return
$this
->
response
(
101
,
"Id is null!"
);
return
$this
->
response
(
101
,
"Id is null!"
);
...
@@ -108,6 +108,10 @@ class Feed extends Basic
...
@@ -108,6 +108,10 @@ class Feed extends Basic
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$where
[
'status'
]
=
0
;
$where
[
'status'
]
=
0
;
$data
=
$push
->
getFeedInfo
(
$field
,
$where
);
$data
=
$push
->
getFeedInfo
(
$field
,
$where
);
if
(
$data
[
'type'
]
==
0
)
{
$data
[
'type_string'
]
=
'成功下定'
;
}
return
$this
->
response
(
200
,
""
,
$data
);
return
$this
->
response
(
200
,
""
,
$data
);
}
}
}
}
\ No newline at end of file
application/api_broker/service/PushMessageService.php
View file @
0bee5b33
...
@@ -103,27 +103,26 @@ class PushMessageService
...
@@ -103,27 +103,26 @@ class PushMessageService
$report_data
=
$report
->
getReportOrder
(
$field
,
[
'a.id'
=>
$report_id
]);
$report_data
=
$report
->
getReportOrder
(
$field
,
[
'a.id'
=>
$report_id
]);
$store
=
new
AStore
();
$store
=
new
AStore
();
$store_name
=
$store
->
getStore
KeyById
(
'store_name'
,
$report_data
[
'report_store_id'
]);
$store_name
=
$store
->
getStore
DistrictName
(
$report_data
[
'report_store_id'
]);
$title
=
'成交就是这么简单'
;
$title
=
'成交就是这么简单'
;
$content
=
"恭喜【
{
$store_name
}
】店【
{
$report_data
[
'report_agent_name'
]
}
】成交【
{
$report_data
[
'house_title'
]
}
】商铺一套"
;
$url
=
$this
->
push
->
http_host
()
.
'/app/feed'
;
$feed
->
editData
([
$feed
->
editData
([
'title'
=>
$title
,
'title'
=>
$title
,
'agent_id'
=>
-
1
,
'agent_id'
=>
-
1
,
'report_id'
=>
$report_id
,
'report_id'
=>
$report_id
,
'house_id'
=>
$report_data
[
'house_id'
],
'house_id'
=>
$report_data
[
'house_id'
],
'content'
=>
$
content
,
'content'
=>
$
store_name
.
$report_data
[
'report_agent_name'
]
,
'steel_phone'
=>
0
,
'steel_phone'
=>
0
,
'type'
=>
0
,
'type'
=>
0
,
'link'
=>
$url
,
'status'
=>
0
,
'status'
=>
0
,
'user_id'
=>
$report_data
[
'report_agent_id'
],
'user_id'
=>
$report_data
[
'report_agent_id'
],
'house_title'
=>
$report_data
[
'house_title'
],
'house_title'
=>
$report_data
[
'house_title'
],
'read_num'
=>
10
,
//不要问什么,就是产品要加的。PV
'read_num'
=>
10
,
//不要问什么,就是产品要加的。PV
'click_num'
=>
10
//不要问什么,就是产品要加的。
'click_num'
=>
10
//不要问什么,就是产品要加的。
]);
]);
$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
;
$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