UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

16 lines (15 loc) 497 B
export declare function getLoginUrlInPixui(baseUrl: string): string; /** * 用户登录(初始化游戏accToken等字段) * @example * ```ts * import { loginInPixui, getLoginUrlInPixui } from 't-comm/es/pixui'; * * await loginInPixui(); * * // 拼接登录态参数 * const url = getLoginUrlInPixui('https://api.example.com/foo'); * // => https://api.example.com/foo?appid=xxx&openid=xxx&access_token=xxx&acctype=wx * ``` */ export declare const loginInPixui: () => Promise<void>;