整理模块,部分功能只有 api

This commit is contained in:
virusdefender
2015-10-18 11:45:06 +08:00
parent ad73a36944
commit 9089ad15dd
10 changed files with 382 additions and 52 deletions

View File

@@ -37,6 +37,8 @@ def check_user_contest_permission(func):
contest_id = kwargs["contest_id"]
elif "contest_id" in request.data:
contest_id = request.data["contest_id"]
elif "contest_id" in request.GET:
contest_id = request.GET["contest_id"]
else:
if request.is_ajax():
return error_response(u"参数错误")