👽 Update the service IDs

This commit is contained in:
2025-11-09 14:13:02 +08:00
parent 8f6c5b01c6
commit 0a3e4b75fd
9 changed files with 16 additions and 16 deletions

View File

@@ -90,7 +90,7 @@ const api = useSolarNetwork()
async function fetchOrder() {
try {
const resp = await api<SnWalletOrder>(
`/id/orders/${encodeURIComponent(orderId)}`
`/pass/orders/${encodeURIComponent(orderId)}`
)
order.value = resp
} catch (err: unknown) {
@@ -101,7 +101,7 @@ async function fetchOrder() {
async function pay() {
submitting.value = true
try {
await api(`/id/orders/${encodeURIComponent(orderId)}/pay`, {
await api(`/pass/orders/${encodeURIComponent(orderId)}/pay`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ pin_code: pinCode.value })