Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
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
谢林臻
sun
Commits
39c37e03
Commit
39c37e03
authored
Dec 04, 2018
by
Davve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改推送
parent
5fed9958
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
push.py
api/push.py
+7
-1
PushDetail.vue
vu/src/views/push/components/PushDetail.vue
+2
-2
No files found.
api/push.py
View file @
39c37e03
...
...
@@ -36,11 +36,17 @@ class PushUpdateOrCreateView(APIView):
creator_id
=
request
.
POST
.
get
(
'creator_id'
)
push_time
=
analysis_time
(
request
.
POST
.
get
(
'push_time'
,
0
))
group_topic_id
=
request
.
POST
.
get
(
'group_topic_id'
,
''
)
full_url
=
request
.
POST
.
get
(
'url'
,
''
)
+
group_topic_id
icon
=
request
.
POST
.
get
(
'icon'
,
''
)
if
icon
.
endswith
(
'-w'
):
icon
=
request
.
POST
.
get
(
'icon'
,
''
)[:
-
2
]
url
=
request
.
POST
.
get
(
'url'
,
''
)
if
url
==
'推送帖子'
:
url
=
'alpha://topic_detail?topic_id='
elif
url
==
'推送小组'
:
url
=
'alpha://group_detail?group_id='
full_url
=
url
+
group_topic_id
data
=
{
'url'
:
full_url
,
'push_time'
:
push_time
,
...
...
vu/src/views/push/components/PushDetail.vue
View file @
39c37e03
...
...
@@ -145,8 +145,8 @@ export default {
loading
:
false
,
userListOptions
:
[],
URLOptions
:
[
{
'key'
:
'alpha://topic_det
ia
l?topic_id='
,
'display_name'
:
'推送帖子'
},
{
'key'
:
'alpha://group_det
ia
l?group_id='
,
'display_name'
:
'推送小组'
},
{
'key'
:
'alpha://topic_det
ai
l?topic_id='
,
'display_name'
:
'推送帖子'
},
{
'key'
:
'alpha://group_det
ai
l?group_id='
,
'display_name'
:
'推送小组'
},
],
expireTimeOption
:
{
disabledDate
(
date
){
...
...
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