mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-12 06:55:49 +08:00
🐛 修复pay
API (KimigaiiWuyi/GenshinUID#560)
This commit is contained in:
parent
b408d51bc5
commit
a506ed2ca0
@ -1168,7 +1168,11 @@ class MysApi(BaseMysApi):
|
||||
'currency': 'CNY',
|
||||
'pay_plat': method,
|
||||
}
|
||||
data = {'order': order, 'sign': gen_payment_sign(order)}
|
||||
data = {
|
||||
'order': order,
|
||||
'special_info': 'topup_center',
|
||||
'sign': gen_payment_sign(order),
|
||||
}
|
||||
HEADER['x-rpc-device_id'] = device_id
|
||||
HEADER['x-rpc-client_type'] = '4'
|
||||
resp = await self._mys_request(
|
||||
|
@ -64,6 +64,10 @@ def get_error(retcode: Union[int, str]) -> str:
|
||||
return 'CK与用户信息不符, 请检查代码实现...'
|
||||
elif retcode == -999:
|
||||
return VERIFY_HINT
|
||||
elif retcode == 125:
|
||||
return '该充值方式暂时不可用!'
|
||||
elif retcode == 126:
|
||||
return '该充值方式不正确!'
|
||||
else:
|
||||
return f'未知错误, 错误码为{retcode}!'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user