feat: 接入微信小程序支付
This commit is contained in:
@@ -538,8 +538,9 @@ describe('authService', () => {
|
||||
const sessions = await getAuthSessions();
|
||||
|
||||
expect(sessions).toHaveLength(1);
|
||||
expect(sessions[0].sessionIds).toEqual(['usess_1', 'usess_2']);
|
||||
expect(sessions[0].sessionCount).toBe(2);
|
||||
const [session] = sessions;
|
||||
expect(session?.sessionIds).toEqual(['usess_1', 'usess_2']);
|
||||
expect(session?.sessionCount).toBe(2);
|
||||
});
|
||||
|
||||
it('revokes a single auth session by backend route', async () => {
|
||||
|
||||
@@ -90,6 +90,7 @@ export function getRpgProfileRechargeCenter(
|
||||
|
||||
export function createRpgProfileRechargeOrder(
|
||||
productId: string,
|
||||
paymentChannel = 'mock',
|
||||
options: RuntimeRequestOptions = {},
|
||||
) {
|
||||
return requestRpgRuntimeJson<CreateProfileRechargeOrderResponse>(
|
||||
@@ -97,7 +98,7 @@ export function createRpgProfileRechargeOrder(
|
||||
{
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ productId, paymentChannel: 'mock' }),
|
||||
body: JSON.stringify({ productId, paymentChannel }),
|
||||
},
|
||||
'充值失败',
|
||||
options,
|
||||
|
||||
Reference in New Issue
Block a user