Merge branch 'feature/huiqiyd-173' into 'develop'

feat: 积分创建订单不需要调支付接口

See merge request huiqi/ecshopx-vshop!33
This commit is contained in:
qugao
2025-08-05 18:35:56 +08:00
2 changed files with 7 additions and 2 deletions

View File

@@ -403,6 +403,7 @@ export default (props = {}) => {
return {
cashierPayment
cashierPayment,
payError
}
}

View File

@@ -44,7 +44,7 @@ function PointShopEspierCheckout() {
}
})
const { cashierPayment } = usePayment()
const { cashierPayment,payError } = usePayment()
const [state, setState] = useAsyncCallback(initialState)
@@ -253,6 +253,10 @@ function PointShopEspierCheckout() {
let { redirect_url } = await api.wx.getredirecturl({ url })
window.location.href = redirect_url
} else {
if(orderInfo?.order_type == "normal_pointsmall" && orderInfo?.total_fee == 0){
payError(orderInfo)
return
}
cashierPayment(
{
...params,