Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zrt #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

zrt #70

wants to merge 1 commit into from

Conversation

StoppedRain-Z
Copy link

No description provided.

#创建活动
class activityCreate(APIView):
def post(self):
# if self.request.user.is_authenticated():
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

登录状态限制被注释掉

class activityList(APIView):
#获取活动列表
def get(self):
# if self.request.user.is_authenticated():
Copy link
Author

@StoppedRain-Z StoppedRain-Z Nov 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

登录状态验证被注释,下同

articles = []
currentTime = datetime.datetime.now().timestamp()
for activity in activities:
if currentTime < activity.end_time.timestamp():
Copy link
Author

@StoppedRain-Z StoppedRain-Z Nov 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该判断currentTime是否在book_start和book_end时间段之间

@@ -15,6 +15,7 @@
"""
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth import authenticate, login
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logout未import

return False

elif self.is_text('抢票'):
query = self.input['Content'][3:]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

抢票后空白符个数未知,应对query进行strip处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant