Skip to content

Commit 99c5b0b

Browse files
committed
app
1 parent bb20050 commit 99c5b0b

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎src/router/ml.ts‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
import { Result } from '../utils'
22

3-
export default async function ml(userId: string, zoneId: string): Promise<Result> {
3+
export default async function ml(user_id: string, zone_id: string): Promise<Result> {
44
const payload = {
5-
code: 'MOBILE_LEGENDS',
5+
shop_code: 'MOBILE_LEGENDS',
66
data: {
7-
userId,
8-
zoneId
7+
user_id,
8+
zone_id
99
}
1010
}
11-
const result = await fetch('https://gopay.co.id/games/v1/order/user-account', {
11+
const result = await fetch('https://api-gw-prd.vocagame.com/gateway-ms/order/v1/client/transactions/verify', {
1212
method: 'POST',
1313
headers: {
1414
'content-type': 'apllication/json',
15+
'x-country': '1'
1516
},
1617
body: JSON.stringify(payload)
1718
})
19+
//const result = await fetch(request)
1820
const data = await result.json()
1921
return {
2022
success: true,

0 commit comments

Comments
 (0)