mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
PC branch was calling TradePagePay (alipay.trade.page.pay), which returns a gateway redirect URL — not a scannable QR payload. That URL was being written to both PayURL and QRCode, so the frontend's qr_code branch encoded the URL string into an image. Users scanning it got a generic HTTP link instead of an Alipay order. Switch PC to TradePreCreate (FACE_TO_FACE_PAYMENT): returns a native qr_code string (qr.alipay.com/...) that renders as a real order QR. Only fill QRCode, leave PayURL empty so the frontend takes the QR popup branch. Surface empty-qr_code responses with sub_code/sub_msg for debugging. H5 path (TradeWapPay) unchanged.