mirror of
https://github.com/sunrin-ana/2025-SSF-dotory-manage.git
synced 2026-03-09 18:10:02 +00:00
jdsflkafjklajfl
This commit is contained in:
parent
bbb2cf8d8d
commit
20c99c6e1c
18 changed files with 119 additions and 26 deletions
|
|
@ -20,7 +20,7 @@ class BuyProduct(Resource):
|
|||
@product_ns.response(400, 'Failed')
|
||||
def post(self, productId):
|
||||
data = product_ns.payload
|
||||
user_id = data.get('userId')
|
||||
user_id = data.get('user_id')
|
||||
if not user_id:
|
||||
product_ns.abort(400, 'userId is required')
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ class BuyProduct(Resource):
|
|||
user_dotori = DotoriService.get_user_dotori(user_id)
|
||||
return {
|
||||
'isSuccess': True,
|
||||
'userId': user_id,
|
||||
'user_id': user_id,
|
||||
'dotory': user_dotori if user_dotori else 0
|
||||
}
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue