mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-07 16:27:26 +08:00
Fix some bugs
- Second try to fix a bug about API - Fix a bug that the `prog boost` shows the incorrect value - Fix a bug that the rewards can be get repeatedly in World Mode - Fix a bug that second tube of blood of the world boss won't change
This commit is contained in:
@@ -63,6 +63,9 @@ def request_json_handle(request, required_keys=[], optional_keys=[]):
|
||||
def wrapped_view(*args, **kwargs):
|
||||
|
||||
data = {}
|
||||
if not request.data:
|
||||
return view(data, *args, **kwargs)
|
||||
|
||||
for key in required_keys:
|
||||
if key not in request.json:
|
||||
return error_return(PostError('Missing parameter: ' + key, api_error_code=-100))
|
||||
|
||||
Reference in New Issue
Block a user