This commit is contained in:
2025-11-30 21:32:01 +08:00
parent b7f1095e4a
commit d4ff2862bd
11 changed files with 413 additions and 34 deletions

View File

@@ -0,0 +1,15 @@
import { useContextKey } from '@kevisual/context';
import { App } from '@kevisual/router';
export const loginByTicket = async (msgInfo: { openid: string, ticket: string }) => {
const app: App = useContextKey('app');
const res = await app.call({
path: 'wx',
key: 'login-by-ticket',
payload: {
ticket: msgInfo.ticket,
openid: msgInfo.openid,
},
})
return res;
}