diff --git a/app/__init__.py b/app/__init__.py index e98637b..10dcfd4 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -328,6 +328,9 @@ def ep_balance_up(): if 'user_id' in body: body.update({'user_uuid': body['user_id']}) del body['user_id'] + elif 'uuid' in body: + body.update({'user_uuid': body['uuid']}) + del body['uuid'] if 'user_uuid' not in body: return {}, 403 @@ -358,6 +361,9 @@ def ep_balance_get(): if 'user_id' in body: body.update({'user_uuid': body['user_id']}) del body['user_id'] + elif 'uuid' in body: + body.update({'user_uuid': body['uuid']}) + del body['uuid'] if 'user_uuid' not in body: return {}, 403