Commit 39c37e03 authored by Davve's avatar Davve

修改推送

parent 5fed9958
......@@ -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,
......
......@@ -145,8 +145,8 @@ export default {
loading: false,
userListOptions: [],
URLOptions: [
{'key': 'alpha://topic_detial?topic_id=', 'display_name': '推送帖子'},
{'key': 'alpha://group_detial?group_id=', 'display_name': '推送小组'},
{'key': 'alpha://topic_detail?topic_id=', 'display_name': '推送帖子'},
{'key': 'alpha://group_detail?group_id=', 'display_name': '推送小组'},
],
expireTimeOption: {
disabledDate(date){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment