Skip to content

zrt - #70

Open
StoppedRain-Z wants to merge 1 commit into
THUCampus:masterfrom
StoppedRain-Z:dev-alice
Open

zrt#70
StoppedRain-Z wants to merge 1 commit into
THUCampus:masterfrom
StoppedRain-Z:dev-alice

Conversation

@StoppedRain-Z

Copy link
Copy Markdown

No description provided.

Comment thread adminpage/views.py
#创建活动
class activityCreate(APIView):
def post(self):
# if self.request.user.is_authenticated():

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

登录状态限制被注释掉

Comment thread adminpage/views.py
class activityList(APIView):
#获取活动列表
def get(self):
# if self.request.user.is_authenticated():

@StoppedRain-Z StoppedRain-Z Nov 16, 2018

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

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

Comment thread wechat/handlers.py
articles = []
currentTime = datetime.datetime.now().timestamp()
for activity in activities:
if currentTime < activity.end_time.timestamp():

@StoppedRain-Z StoppedRain-Z Nov 16, 2018

Copy link
Copy Markdown
Author

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时间段之间

Comment thread WeChatTicket/urls.py
"""
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth import authenticate, login

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

logout未import

Comment thread wechat/handlers.py
return False

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

Copy link
Copy Markdown
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