微信sdk更新,修正上传门头照照片错误

This commit is contained in:
2026-07-12 16:10:11 +08:00
parent e8823a0640
commit 656e906254
6 changed files with 126 additions and 27 deletions
+3 -1
View File
@@ -7,6 +7,7 @@ export {
normalizeJssdkPageUrl,
getJssdkSignUrl,
captureIosJssdkEntryUrl,
resetJssdkConfig,
stripOAuthParamsFromLocation,
} from './jssdk';
export { formatScanFailMessage } from './scan';
@@ -42,7 +43,7 @@ export type { WeixinSdkConfig, WxApi, MiniProgramWx } from './types';
export { DEFAULT_JS_API_LIST } from './types';
import type { WeixinSdkConfig } from './types';
import { initWechatJssdk } from './jssdk';
import { initWechatJssdk, resetJssdkConfig } from './jssdk';
import { getWechatLocation, getWechatLocationDetailed } from './location';
import { scanQrCode } from './scan';
import { invokeWechatPay } from './pay';
@@ -59,6 +60,7 @@ import {
export function createWeixinSdk(config: WeixinSdkConfig) {
return {
init: () => initWechatJssdk({ ...config, apiBase: config.apiBase ?? '/api/v1' }),
reset: () => resetJssdkConfig(),
login: () => wechatLogin(config),
handleOAuthCallback: (params?: URLSearchParams) => handleWechatOAuthCallback(config, params),
bindPhone: (payload: { wxSessionKey: string; phone: string; code: string }) =>