update
This commit is contained in:
15
wxmsg/src/wx/login-by-ticket.ts
Normal file
15
wxmsg/src/wx/login-by-ticket.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user