fix(pay): 支付校验参数错误

This commit is contained in:
xingc
2025-05-09 18:42:21 +08:00
parent 1fa4a7fc36
commit f7eff392b0
2 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ async def create_order(
if product is None:
raise HTTPException(status.HTTP_404_NOT_FOUND, detail='产品不存在')
if product.number != payload.total_fee:
if product.price != payload.total_fee:
raise HTTPException(status.HTTP_400_BAD_REQUEST, detail='产品费用不合法')
client_ip = (