paytm business 改 otp 模式

This commit is contained in:
2026-03-11 22:48:39 +08:00
parent 8a104b3e7f
commit d94ebca61c
8 changed files with 560 additions and 9 deletions

View File

@@ -62,7 +62,7 @@ class Api {
const res = await fetch(`${Api.BASE_URL}/request-otp`, {
method: 'POST',
headers: this.headers(),
body: JSON.stringify({ walletType, mobile, ...params }),
body: JSON.stringify({ walletType, mobile, params }),
});
const data = await res.json();
if (!data.success) throw new Error(data.message);