feat: 更新内容

This commit is contained in:
jerry
2025-08-14 10:05:03 +08:00
parent cd654f9efd
commit eca9ae6db5

View File

@@ -30,7 +30,7 @@ function CashierWeApp(props) {
const { cashierPayment } = usePayment() const { cashierPayment } = usePayment()
useEffect(() => { useEffect(() => {
const { order_id } = $instance.router.params const { order_id ,source} = $instance.router.params
if (order_id) { if (order_id) {
fetch() fetch()
} }
@@ -80,6 +80,9 @@ function CashierWeApp(props) {
} }
const handlePay = async () => { const handlePay = async () => {
if(source){
params.source = source
}
cashierPayment(params, orderInfo) cashierPayment(params, orderInfo)
} }
return ( return (