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:
Lost-MSth
2022-08-11 22:38:26 +08:00
parent 27ee147989
commit 732947a3f0
4 changed files with 8 additions and 6 deletions

View File

@@ -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))