新增注册来源功能

This commit is contained in:
wangxiaowei
2026-01-18 00:48:27 +08:00
parent b7e2d5d4c9
commit 1e09782256
9 changed files with 71 additions and 12 deletions

View File

@ -91,10 +91,10 @@ export function getWxCode() {
/**
* 微信登录
* @param params 微信登录参数包含code
* @param params 微信登录参数包含code, reg_source(注册来源,可选)
* @returns Promise 包含登录结果
*/
export function wxLogin(data: { code: string }) {
export function wxLogin(data: { code: string, source?: number }) {
return http.Post<IUserLogin>('/api/login/mnpLogin',
data,
{