fix(pay): 支付校验参数错误
This commit is contained in:
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user