diff --git a/manifest.json b/manifest.json index 8d86aae..0dd363e 100644 --- a/manifest.json +++ b/manifest.json @@ -139,6 +139,20 @@ "pid" : "11931", "parameters" : {} } + }, + "WITTestUniPlugin" : { + "__plugin_info__" : { + "name" : "WITTestUniPlugin", + "description" : "iOS原生插件", + "platforms" : "iOS", + "url" : "", + "android_package_name" : "", + "ios_bundle_id" : "", + "isCloud" : false, + "bought" : -1, + "pid" : "", + "parameters" : {} + } } } }, diff --git a/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/Headers/WITTestUniPlugin-umbrella.h b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/Headers/WITTestUniPlugin-umbrella.h new file mode 100644 index 0000000..f31377d --- /dev/null +++ b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/Headers/WITTestUniPlugin-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double WITTestUniPluginVersionNumber; +FOUNDATION_EXPORT const unsigned char WITTestUniPluginVersionString[]; + diff --git a/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/Info.plist b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/Info.plist new file mode 100644 index 0000000..29130e8 Binary files /dev/null and b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/Info.plist differ diff --git a/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/Modules/module.modulemap b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/Modules/module.modulemap new file mode 100644 index 0000000..6ef08af --- /dev/null +++ b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module WITTestUniPlugin { + umbrella header "WITTestUniPlugin-umbrella.h" + + export * + module * { export * } +} diff --git a/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/WITTestUniPlugin b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/WITTestUniPlugin new file mode 100644 index 0000000..c4807cb Binary files /dev/null and b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/WITTestUniPlugin differ diff --git a/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeDirectory b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeDirectory new file mode 100644 index 0000000..6a945f6 Binary files /dev/null and b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeDirectory differ diff --git a/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeRequirements b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeRequirements new file mode 100644 index 0000000..dbf9d61 Binary files /dev/null and b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeRequirements differ diff --git a/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeRequirements-1 b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeRequirements-1 new file mode 100644 index 0000000..355155d Binary files /dev/null and b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeRequirements-1 differ diff --git a/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeResources b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeResources new file mode 100644 index 0000000..8c0d91a --- /dev/null +++ b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeResources @@ -0,0 +1,132 @@ + + + + + files + + Headers/WITTestUniPlugin-umbrella.h + + sy6fvvVyh3Hq55ggZ631/oeqa4I= + + Info.plist + + FPcXGdMbWGdTQijRlJ+7nR/KGYg= + + Modules/module.modulemap + + ZjoU2LSV3I6Ja00k/RA4RMc2K+U= + + + files2 + + Headers/WITTestUniPlugin-umbrella.h + + hash + + sy6fvvVyh3Hq55ggZ631/oeqa4I= + + hash2 + + S+/WwO1UzL/8TSMb+wfLG/fLqvGlyFIbd0PV6EKkTPY= + + + Modules/module.modulemap + + hash + + ZjoU2LSV3I6Ja00k/RA4RMc2K+U= + + hash2 + + o6k+82QmVbWgccrZRooVbNITdXrkdiGH1Jg6mz8v28k= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeSignature b/nativeplugins/WITTestUniPlugin/ios/WITTestUniPlugin.framework/_CodeSignature/CodeSignature new file mode 100644 index 0000000..e69de29 diff --git a/nativeplugins/WITTestUniPlugin/package.json b/nativeplugins/WITTestUniPlugin/package.json new file mode 100644 index 0000000..0f5a25d --- /dev/null +++ b/nativeplugins/WITTestUniPlugin/package.json @@ -0,0 +1,24 @@ +{ + "name":"WITTestUniPlugin", + "id":"WITTestUniPlugin", + "version":"0.1.0", + "description":"iOS原生插件", + "_dp_type":"nativeplugin", + "_dp_nativeplugin":{ + "ios":{ + "plugins":[ + { + "type":"module", + "name":"WITTestUniPlugin", + "class":"WITTestUniModule" + } + ], + "integrateType":"framework", + "deploymentTarget":"10.0", + "frameworks":[ + "Foundation.framework", + "UIKit.framework" + ] + } + } +} diff --git a/pages/login_package/login/login.vue b/pages/login_package/login/login.vue index 91bfa35..908f309 100644 --- a/pages/login_package/login/login.vue +++ b/pages/login_package/login/login.vue @@ -103,8 +103,9 @@ bgColor="#f1f6ff00" > 微信登录 - - + + + { + uni.showToast({ + title: '调用异步方法 ' + ret, + icon: "none" + }) + console.log(ret); + }); + }, jumpHome() { // const sysPlatform = getCurrentSysPlatform(); // if(sysPlatform === "android"){ diff --git a/uni_modules/uni-requestMerchantTransfer/readme.md b/uni_modules/uni-requestMerchantTransfer/readme.md index 478f848..6f9291b 100644 --- a/uni_modules/uni-requestMerchantTransfer/readme.md +++ b/uni_modules/uni-requestMerchantTransfer/readme.md @@ -23,19 +23,19 @@ ### 示例: ```javascript -uni.requestMerchantTransfer({ - "mchId": "mchId", - "appId": "微信开发者平台对应app的APPID", - "package": "package", - success: (res) => { - console.log(res) - }, - fail: (res) => { - console.log(res.errMsg) - }, - complete: (res) => { - console.log(res.errMsg) - } +uni.requestMerchantTransfer({ + "mchId": "mchId", + "appId": "微信开发者平台对应app的APPID", + "package": "package", + success: (res) => { + console.log(res) + }, + fail: (res) => { + console.log(res.errMsg) + }, + complete: (res) => { + console.log(res.errMsg) + } }) ``` @@ -48,32 +48,32 @@ iOS平台必须在项目根目录下的 [Info.plist](https://uniapp.dcloud.net.c 示例如下: ```xml - - - - - WeChat - - appid - 请填写微信开发者平台对应app的APPID - universalLink - 请填写能唤起当前应用的Universal Links路径 - - - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLName - WeChat - CFBundleURLSchemes - - 请填写微信开发者平台对应app的APPID - - - - + + + + + WeChat + + appid + 请填写微信开发者平台对应app的APPID + universalLink + 请填写能唤起当前应用的Universal Links路径 + + + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLName + WeChat + CFBundleURLSchemes + + 请填写微信开发者平台对应app的APPID + + + + ``` diff --git a/uni_modules/uni-requestMerchantTransfer/utssdk/app-ios/config.json b/uni_modules/uni-requestMerchantTransfer/utssdk/app-ios/config.json index 12a8531..c559c8c 100644 --- a/uni_modules/uni-requestMerchantTransfer/utssdk/app-ios/config.json +++ b/uni_modules/uni-requestMerchantTransfer/utssdk/app-ios/config.json @@ -1,11 +1,11 @@ -{ - "frameworks": [ - "CoreGraphics.framework", - "WebKit.framework", - "Security.framework" - ], - "deploymentTarget": "12", - "plists": { - "LSApplicationQueriesSchemes": ["weixin", "weixinULAPI", "weixinURLParamsAPI"] - } +{ + "frameworks": [ + "CoreGraphics.framework", + "WebKit.framework", + "Security.framework" + ], + "deploymentTarget": "12", + "plists": { + "LSApplicationQueriesSchemes": ["weixin", "weixinULAPI", "weixinURLParamsAPI"] + } } diff --git a/uni_modules/uni-requestMerchantTransfer/utssdk/app-ios/index.uts b/uni_modules/uni-requestMerchantTransfer/utssdk/app-ios/index.uts index 5797750..68b755f 100644 --- a/uni_modules/uni-requestMerchantTransfer/utssdk/app-ios/index.uts +++ b/uni_modules/uni-requestMerchantTransfer/utssdk/app-ios/index.uts @@ -1,158 +1,158 @@ -import { UIApplication } from "UIKit"; -import { URL, NSUserActivity, Bundle, URLComponents, URLQueryItem, Script } from "Foundation"; -import { RequestMerchantTransfer, RequestMerchantTransferOptions, RequestMerchantTransferGeneralCallbackResult } from '../interface.uts'; - -export const requestMerchantTransfer : RequestMerchantTransfer = function (options : RequestMerchantTransferOptions) { - WxpayManager.requestMerchantTransfer(options) -} - -export class WxpayManagerHookProxy implements UTSiOSHookProxy { - // 应用正常启动时 (不包括已在后台转到前台的情况)的回调函数。 - applicationDidFinishLaunchingWithOptions(application : UIApplication | null, launchOptions : Map | null = null) : boolean { - WxpayManager.registerApp() - return false - } - - // 通过 url scheme 方式唤起 app 时的回调函数。 - applicationOpenURLOptions(app : UIApplication | null, url : URL, options : Map | null = null) : boolean { - WxpayManager.handleOpen(url) - return true - } - - // 当应用程序接收到与用户活动相关的数据时调用此方法,例如,当用户使用 Universal Link 唤起应用时。 - applicationContinueUserActivityRestorationHandler(application : UIApplication | null, userActivity : NSUserActivity | null, restorationHandler : ((res : [any] | null) => void) | null = null) : boolean { - WxpayManager.handleOpenUniversalLink(userActivity) - return true - } -} - -class WxpayManager implements WXApiDelegate { - private static shared = new WxpayManager() - private static options ?: RequestMerchantTransferOptions - - @UTSiOS.keyword("fileprivate") - static registerApp() { - const scheme = WxpayManager.getApplicationScheme() - const universalLink = WxpayManager.getApplicationUniversalLink() - if (scheme != null && scheme != "" && universalLink != null && universalLink != "") { - WXApi.registerApp(scheme!, universalLink = universalLink!) - } - } - - @UTSiOS.keyword("fileprivate") - static handleOpen(url : URL) { - WXApi.handleOpen(url, delegate = shared) - } - - @UTSiOS.keyword("fileprivate") - static handleOpenUniversalLink(userActivity : NSUserActivity | null) { - if (userActivity != null) { - WXApi.handleOpenUniversalLink(userActivity!, delegate = shared) - } - } - - private static getApplicationScheme() : string | null { - let scheme : string | null = null - const infoDictionary = Bundle.main.infoDictionary - if (infoDictionary != null) { - const wechat = infoDictionary!['WeChat'] as Map | null - if (wechat != null) { - scheme = wechat!['appid'] as string | null - } - } - - return scheme - } - - private static getApplicationUniversalLink() : string | null { - let universalLink : string | null = null - const infoDictionary = Bundle.main.infoDictionary - if (infoDictionary != null) { - const wechat = infoDictionary!['WeChat'] as Map | null - if (wechat != null) { - universalLink = wechat!['universalLink'] as string | null - } - } - return universalLink - } - - //@brief 检查微信是否已被用户安装 - @UTSiOS.keyword("fileprivate") - static isWXAppInstalled() : boolean { - const url = URL(string = "weixin://")! - if (UIApplication.shared.canOpenURL(url)) { - return true - } - return false - } - - static buildQueryString(parameters : Map) : string | null { - let components = URLComponents() - let queryItems : [URLQueryItem] = [] - parameters.forEach((value, key) => { - queryItems.append(URLQueryItem(name = key, value = value)) - }) - components.queryItems = queryItems - return components.percentEncodedQuery - } - - static requestMerchantTransfer(options : RequestMerchantTransferOptions) { - WxpayManager.options = options - if (WxpayManager.isWXAppInstalled() == false) { - var res : RequestMerchantTransferGeneralCallbackResult = { - errMsg: '微信没有安装' - } - options.fail?.(res) - options.complete?.(res) - } - - if (WxpayManager.getApplicationScheme() == null || WxpayManager.getApplicationScheme() == "") { - var res : RequestMerchantTransferGeneralCallbackResult = { - errMsg: '没有配置对应的URL Scheme' - } - options.fail?.(res) - options.complete?.(res) - return - } - - if (WxpayManager.getApplicationUniversalLink() == null || WxpayManager.getApplicationUniversalLink() == "") { - var res : RequestMerchantTransferGeneralCallbackResult = { - errMsg: '没有配置对应的Universal Link' - } - options.fail?.(res) - options.complete?.(res) - return - } - - if (WxpayManager.options != null) { - const parameters = new Map() - parameters.set('mchId', options.mchId) - parameters.set('package', options.package) - if (options.appId != null) { - parameters.set('appId', options.appId!) - } - if (options.openId != null) { - parameters.set('openId', options.openId!) - } - if (options.subAppId != null) { - parameters.set('subAppId', options.subAppId!) - } - if (options.subMchId != null) { - parameters.set('subMchId', options.subMchId!) - } - - let reg = new WXOpenBusinessViewReq(); - reg.businessType = "requestMerchantTransfer" - - let query = WxpayManager.buildQueryString(parameters) ?? "" - reg.query = query - - //函数调用后,会切换到微信的界面。第三方应用程序等待微信返回onResp。微信在异步处理完成后一定会调onResp - WXApi.send(reg) - } - } - - //@brief 发送一个sendReq后,收到微信的回应 +import { UIApplication } from "UIKit"; +import { URL, NSUserActivity, Bundle, URLComponents, URLQueryItem, Script } from "Foundation"; +import { RequestMerchantTransfer, RequestMerchantTransferOptions, RequestMerchantTransferGeneralCallbackResult } from '../interface.uts'; + +export const requestMerchantTransfer : RequestMerchantTransfer = function (options : RequestMerchantTransferOptions) { + WxpayManager.requestMerchantTransfer(options) +} + +export class WxpayManagerHookProxy implements UTSiOSHookProxy { + // 应用正常启动时 (不包括已在后台转到前台的情况)的回调函数。 + applicationDidFinishLaunchingWithOptions(application : UIApplication | null, launchOptions : Map | null = null) : boolean { + WxpayManager.registerApp() + return false + } + + // 通过 url scheme 方式唤起 app 时的回调函数。 + applicationOpenURLOptions(app : UIApplication | null, url : URL, options : Map | null = null) : boolean { + WxpayManager.handleOpen(url) + return true + } + + // 当应用程序接收到与用户活动相关的数据时调用此方法,例如,当用户使用 Universal Link 唤起应用时。 + applicationContinueUserActivityRestorationHandler(application : UIApplication | null, userActivity : NSUserActivity | null, restorationHandler : ((res : [any] | null) => void) | null = null) : boolean { + WxpayManager.handleOpenUniversalLink(userActivity) + return true + } +} + +class WxpayManager implements WXApiDelegate { + private static shared = new WxpayManager() + private static options ?: RequestMerchantTransferOptions + + @UTSiOS.keyword("fileprivate") + static registerApp() { + const scheme = WxpayManager.getApplicationScheme() + const universalLink = WxpayManager.getApplicationUniversalLink() + if (scheme != null && scheme != "" && universalLink != null && universalLink != "") { + WXApi.registerApp(scheme!, universalLink = universalLink!) + } + } + + @UTSiOS.keyword("fileprivate") + static handleOpen(url : URL) { + WXApi.handleOpen(url, delegate = shared) + } + + @UTSiOS.keyword("fileprivate") + static handleOpenUniversalLink(userActivity : NSUserActivity | null) { + if (userActivity != null) { + WXApi.handleOpenUniversalLink(userActivity!, delegate = shared) + } + } + + private static getApplicationScheme() : string | null { + let scheme : string | null = null + const infoDictionary = Bundle.main.infoDictionary + if (infoDictionary != null) { + const wechat = infoDictionary!['WeChat'] as Map | null + if (wechat != null) { + scheme = wechat!['appid'] as string | null + } + } + + return scheme + } + + private static getApplicationUniversalLink() : string | null { + let universalLink : string | null = null + const infoDictionary = Bundle.main.infoDictionary + if (infoDictionary != null) { + const wechat = infoDictionary!['WeChat'] as Map | null + if (wechat != null) { + universalLink = wechat!['universalLink'] as string | null + } + } + return universalLink + } + + //@brief 检查微信是否已被用户安装 + @UTSiOS.keyword("fileprivate") + static isWXAppInstalled() : boolean { + const url = URL(string = "weixin://")! + if (UIApplication.shared.canOpenURL(url)) { + return true + } + return false + } + + static buildQueryString(parameters : Map) : string | null { + let components = URLComponents() + let queryItems : [URLQueryItem] = [] + parameters.forEach((value, key) => { + queryItems.append(URLQueryItem(name = key, value = value)) + }) + components.queryItems = queryItems + return components.percentEncodedQuery + } + + static requestMerchantTransfer(options : RequestMerchantTransferOptions) { + WxpayManager.options = options + if (WxpayManager.isWXAppInstalled() == false) { + var res : RequestMerchantTransferGeneralCallbackResult = { + errMsg: '微信没有安装' + } + options.fail?.(res) + options.complete?.(res) + } + + if (WxpayManager.getApplicationScheme() == null || WxpayManager.getApplicationScheme() == "") { + var res : RequestMerchantTransferGeneralCallbackResult = { + errMsg: '没有配置对应的URL Scheme' + } + options.fail?.(res) + options.complete?.(res) + return + } + + if (WxpayManager.getApplicationUniversalLink() == null || WxpayManager.getApplicationUniversalLink() == "") { + var res : RequestMerchantTransferGeneralCallbackResult = { + errMsg: '没有配置对应的Universal Link' + } + options.fail?.(res) + options.complete?.(res) + return + } + + if (WxpayManager.options != null) { + const parameters = new Map() + parameters.set('mchId', options.mchId) + parameters.set('package', options.package) + if (options.appId != null) { + parameters.set('appId', options.appId!) + } + if (options.openId != null) { + parameters.set('openId', options.openId!) + } + if (options.subAppId != null) { + parameters.set('subAppId', options.subAppId!) + } + if (options.subMchId != null) { + parameters.set('subMchId', options.subMchId!) + } + + let reg = new WXOpenBusinessViewReq(); + reg.businessType = "requestMerchantTransfer" + + let query = WxpayManager.buildQueryString(parameters) ?? "" + reg.query = query + + //函数调用后,会切换到微信的界面。第三方应用程序等待微信返回onResp。微信在异步处理完成后一定会调onResp + WXApi.send(reg) + } + } + + //@brief 发送一个sendReq后,收到微信的回应 onResp(resp : BaseResp) { if (resp instanceof WXOpenBusinessViewResp) { let resp = resp as WXOpenBusinessViewResp @@ -178,6 +178,6 @@ class WxpayManager implements WXApiDelegate { WxpayManager.options?.success?.(res) WxpayManager.options?.complete?.(res) } - } - } + } + } } diff --git a/uni_modules/uni-requestMerchantTransfer/utssdk/interface.uts b/uni_modules/uni-requestMerchantTransfer/utssdk/interface.uts index be01c7e..d9e3a57 100644 --- a/uni_modules/uni-requestMerchantTransfer/utssdk/interface.uts +++ b/uni_modules/uni-requestMerchantTransfer/utssdk/interface.uts @@ -1,710 +1,710 @@ -export interface Uni { - /** - 商家转账用户确认模式下,拉起页面请求用户确认收款 - @uniPlatform { - "app": { - "android": { - "osVer": "5.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "ios": { - "osVer": "12.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "harmony": { - "osVer": "3.0", - "uniVer": "x", - "unixVer": "x" - } - }, - "web": { - "uniVer": "x", - "unixVer": "x" - }, - "mp": { - "weixin": { - "hostVer": "√", - "uniVer": "√", - "unixVer": "4.54" - }, - "alipay": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "baidu": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "toutiao": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "lark": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "qq": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "kuaishou": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "jd": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - } - } - } - */ - requestMerchantTransfer(options : RequestMerchantTransferOptions) : void; -} - -export type RequestMerchantTransfer = (options : RequestMerchantTransferOptions) => void; -export type RequestMerchantTransferOptions = { - /** - 商户号 - @uniPlatform { - "app": { - "android": { - "osVer": "5.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "ios": { - "osVer": "12.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "harmony": { - "osVer": "3.0", - "uniVer": "x", - "unixVer": "x" - } - }, - "web": { - "uniVer": "x", - "unixVer": "x" - }, - "mp": { - "weixin": { - "hostVer": "√", - "uniVer": "√", - "unixVer": "4.54" - }, - "alipay": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "baidu": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "toutiao": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "lark": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "qq": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "kuaishou": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "jd": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - } - } - } - */ - mchId : string - /** - 商家转账付款单跳转收款页 pkg 信息,商家转账付款单受理成功时返回给商户 - @uniPlatform { - "app": { - "android": { - "osVer": "5.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "ios": { - "osVer": "12.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "harmony": { - "osVer": "3.0", - "uniVer": "x", - "unixVer": "x" - } - }, - "web": { - "uniVer": "x", - "unixVer": "x" - }, - "mp": { - "weixin": { - "hostVer": "√", - "uniVer": "√", - "unixVer": "4.54" - }, - "alipay": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "baidu": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "toutiao": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "lark": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "qq": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "kuaishou": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "jd": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - } - } - } - */ - package : string - /** - 商户 appId(微信平台appid),普通模式下必填,服务商模式下,appId 和 subAppId 二选一填写 - @uniPlatform { - "app": { - "android": { - "osVer": "5.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "ios": { - "osVer": "12.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "harmony": { - "osVer": "3.0", - "uniVer": "x", - "unixVer": "x" - } - }, - "web": { - "uniVer": "x", - "unixVer": "x" - }, - "mp": { - "weixin": { - "hostVer": "√", - "uniVer": "√", - "unixVer": "4.54" - }, - "alipay": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "baidu": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "toutiao": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "lark": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "qq": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "kuaishou": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "jd": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - } - } - } - */ - appId ?: string | null - /** - 收款用户 openId, 对应传入的商户 appId 下,某用户的 openId - @uniPlatform { - "app": { - "android": { - "osVer": "5.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "ios": { - "osVer": "12.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "harmony": { - "osVer": "3.0", - "uniVer": "x", - "unixVer": "x" - } - }, - "web": { - "uniVer": "x", - "unixVer": "x" - }, - "mp": { - "weixin": { - "hostVer": "√", - "uniVer": "√", - "unixVer": "4.54" - }, - "alipay": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "baidu": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "toutiao": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "lark": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "qq": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "kuaishou": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "jd": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - } - } - } - */ - openId ?: string | null - /** - 子商户 appId(微信平台子appid),服务商模式下,appId 和 subAppId 二选一填写 - @uniPlatform { - "app": { - "android": { - "osVer": "5.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "ios": { - "osVer": "12.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "harmony": { - "osVer": "3.0", - "uniVer": "x", - "unixVer": "x" - } - }, - "web": { - "uniVer": "x", - "unixVer": "x" - }, - "mp": { - "weixin": { - "hostVer": "√", - "uniVer": "√", - "unixVer": "4.54" - }, - "alipay": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "baidu": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "toutiao": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "lark": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "qq": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "kuaishou": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "jd": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - } - } - } - */ - subAppId ?: string | null - /** - 子商户号,服务商模式下必填 - @uniPlatform { - "app": { - "android": { - "osVer": "5.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "ios": { - "osVer": "12.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "harmony": { - "osVer": "3.0", - "uniVer": "x", - "unixVer": "x" - } - }, - "web": { - "uniVer": "x", - "unixVer": "x" - }, - "mp": { - "weixin": { - "hostVer": "√", - "uniVer": "√", - "unixVer": "4.54" - }, - "alipay": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "baidu": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "toutiao": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "lark": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "qq": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "kuaishou": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "jd": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - } - } - } - */ - subMchId ?: string | null - /** - 接口调用成功的回调函数 - @uniPlatform { - "app": { - "android": { - "osVer": "5.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "ios": { - "osVer": "12.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "harmony": { - "osVer": "3.0", - "uniVer": "x", - "unixVer": "x" - } - }, - "web": { - "uniVer": "x", - "unixVer": "x" - }, - "mp": { - "weixin": { - "hostVer": "√", - "uniVer": "√", - "unixVer": "4.54" - }, - "alipay": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "baidu": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "toutiao": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "lark": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "qq": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "kuaishou": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "jd": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - } - } - } - */ - success ?: RequestMerchantTransferSuccessCallback | null - /** - 接口调用失败的回调函数 - @uniPlatform { - "app": { - "android": { - "osVer": "5.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "ios": { - "osVer": "12.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "harmony": { - "osVer": "3.0", - "uniVer": "x", - "unixVer": "x" - } - }, - "web": { - "uniVer": "x", - "unixVer": "x" - }, - "mp": { - "weixin": { - "hostVer": "√", - "uniVer": "√", - "unixVer": "4.54" - }, - "alipay": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "baidu": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "toutiao": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "lark": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "qq": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "kuaishou": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "jd": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - } - } - } - */ - fail ?: RequestMerchantTransferFailCallback | null - /** - 接口调用结束的回调函数(调用成功、失败都会执行) - @uniPlatform { - "app": { - "android": { - "osVer": "5.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "ios": { - "osVer": "12.0", - "uniVer": "4.54", - "unixVer": "4.54" - }, - "harmony": { - "osVer": "3.0", - "uniVer": "x", - "unixVer": "x" - } - }, - "web": { - "uniVer": "x", - "unixVer": "x" - }, - "mp": { - "weixin": { - "hostVer": "√", - "uniVer": "√", - "unixVer": "4.54" - }, - "alipay": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "baidu": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "toutiao": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "lark": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "qq": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "kuaishou": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - }, - "jd": { - "hostVer": "x", - "uniVer": "x", - "unixVer": "x" - } - } - } - */ - complete ?: RequestMerchantTransferCompleteCallback | null -} -export type RequestMerchantTransferCompleteCallback = ( - res : RequestMerchantTransferGeneralCallbackResult -) => void -/** 接口调用失败的回调函数 */ -export type RequestMerchantTransferFailCallback = ( - res : RequestMerchantTransferGeneralCallbackResult -) => void -/** 接口调用成功的回调函数 */ -export type RequestMerchantTransferSuccessCallback = ( - res : RequestMerchantTransferGeneralCallbackResult -) => void -export type RequestMerchantTransferGeneralCallbackResult = { - errMsg : string +export interface Uni { + /** + 商家转账用户确认模式下,拉起页面请求用户确认收款 + @uniPlatform { + "app": { + "android": { + "osVer": "5.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "ios": { + "osVer": "12.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "harmony": { + "osVer": "3.0", + "uniVer": "x", + "unixVer": "x" + } + }, + "web": { + "uniVer": "x", + "unixVer": "x" + }, + "mp": { + "weixin": { + "hostVer": "√", + "uniVer": "√", + "unixVer": "4.54" + }, + "alipay": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "baidu": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "toutiao": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "lark": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "qq": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "kuaishou": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "jd": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + } + } + } + */ + requestMerchantTransfer(options : RequestMerchantTransferOptions) : void; +} + +export type RequestMerchantTransfer = (options : RequestMerchantTransferOptions) => void; +export type RequestMerchantTransferOptions = { + /** + 商户号 + @uniPlatform { + "app": { + "android": { + "osVer": "5.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "ios": { + "osVer": "12.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "harmony": { + "osVer": "3.0", + "uniVer": "x", + "unixVer": "x" + } + }, + "web": { + "uniVer": "x", + "unixVer": "x" + }, + "mp": { + "weixin": { + "hostVer": "√", + "uniVer": "√", + "unixVer": "4.54" + }, + "alipay": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "baidu": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "toutiao": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "lark": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "qq": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "kuaishou": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "jd": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + } + } + } + */ + mchId : string + /** + 商家转账付款单跳转收款页 pkg 信息,商家转账付款单受理成功时返回给商户 + @uniPlatform { + "app": { + "android": { + "osVer": "5.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "ios": { + "osVer": "12.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "harmony": { + "osVer": "3.0", + "uniVer": "x", + "unixVer": "x" + } + }, + "web": { + "uniVer": "x", + "unixVer": "x" + }, + "mp": { + "weixin": { + "hostVer": "√", + "uniVer": "√", + "unixVer": "4.54" + }, + "alipay": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "baidu": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "toutiao": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "lark": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "qq": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "kuaishou": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "jd": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + } + } + } + */ + package : string + /** + 商户 appId(微信平台appid),普通模式下必填,服务商模式下,appId 和 subAppId 二选一填写 + @uniPlatform { + "app": { + "android": { + "osVer": "5.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "ios": { + "osVer": "12.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "harmony": { + "osVer": "3.0", + "uniVer": "x", + "unixVer": "x" + } + }, + "web": { + "uniVer": "x", + "unixVer": "x" + }, + "mp": { + "weixin": { + "hostVer": "√", + "uniVer": "√", + "unixVer": "4.54" + }, + "alipay": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "baidu": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "toutiao": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "lark": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "qq": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "kuaishou": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "jd": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + } + } + } + */ + appId ?: string | null + /** + 收款用户 openId, 对应传入的商户 appId 下,某用户的 openId + @uniPlatform { + "app": { + "android": { + "osVer": "5.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "ios": { + "osVer": "12.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "harmony": { + "osVer": "3.0", + "uniVer": "x", + "unixVer": "x" + } + }, + "web": { + "uniVer": "x", + "unixVer": "x" + }, + "mp": { + "weixin": { + "hostVer": "√", + "uniVer": "√", + "unixVer": "4.54" + }, + "alipay": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "baidu": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "toutiao": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "lark": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "qq": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "kuaishou": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "jd": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + } + } + } + */ + openId ?: string | null + /** + 子商户 appId(微信平台子appid),服务商模式下,appId 和 subAppId 二选一填写 + @uniPlatform { + "app": { + "android": { + "osVer": "5.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "ios": { + "osVer": "12.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "harmony": { + "osVer": "3.0", + "uniVer": "x", + "unixVer": "x" + } + }, + "web": { + "uniVer": "x", + "unixVer": "x" + }, + "mp": { + "weixin": { + "hostVer": "√", + "uniVer": "√", + "unixVer": "4.54" + }, + "alipay": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "baidu": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "toutiao": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "lark": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "qq": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "kuaishou": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "jd": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + } + } + } + */ + subAppId ?: string | null + /** + 子商户号,服务商模式下必填 + @uniPlatform { + "app": { + "android": { + "osVer": "5.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "ios": { + "osVer": "12.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "harmony": { + "osVer": "3.0", + "uniVer": "x", + "unixVer": "x" + } + }, + "web": { + "uniVer": "x", + "unixVer": "x" + }, + "mp": { + "weixin": { + "hostVer": "√", + "uniVer": "√", + "unixVer": "4.54" + }, + "alipay": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "baidu": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "toutiao": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "lark": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "qq": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "kuaishou": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "jd": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + } + } + } + */ + subMchId ?: string | null + /** + 接口调用成功的回调函数 + @uniPlatform { + "app": { + "android": { + "osVer": "5.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "ios": { + "osVer": "12.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "harmony": { + "osVer": "3.0", + "uniVer": "x", + "unixVer": "x" + } + }, + "web": { + "uniVer": "x", + "unixVer": "x" + }, + "mp": { + "weixin": { + "hostVer": "√", + "uniVer": "√", + "unixVer": "4.54" + }, + "alipay": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "baidu": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "toutiao": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "lark": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "qq": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "kuaishou": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "jd": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + } + } + } + */ + success ?: RequestMerchantTransferSuccessCallback | null + /** + 接口调用失败的回调函数 + @uniPlatform { + "app": { + "android": { + "osVer": "5.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "ios": { + "osVer": "12.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "harmony": { + "osVer": "3.0", + "uniVer": "x", + "unixVer": "x" + } + }, + "web": { + "uniVer": "x", + "unixVer": "x" + }, + "mp": { + "weixin": { + "hostVer": "√", + "uniVer": "√", + "unixVer": "4.54" + }, + "alipay": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "baidu": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "toutiao": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "lark": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "qq": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "kuaishou": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "jd": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + } + } + } + */ + fail ?: RequestMerchantTransferFailCallback | null + /** + 接口调用结束的回调函数(调用成功、失败都会执行) + @uniPlatform { + "app": { + "android": { + "osVer": "5.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "ios": { + "osVer": "12.0", + "uniVer": "4.54", + "unixVer": "4.54" + }, + "harmony": { + "osVer": "3.0", + "uniVer": "x", + "unixVer": "x" + } + }, + "web": { + "uniVer": "x", + "unixVer": "x" + }, + "mp": { + "weixin": { + "hostVer": "√", + "uniVer": "√", + "unixVer": "4.54" + }, + "alipay": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "baidu": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "toutiao": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "lark": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "qq": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "kuaishou": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + }, + "jd": { + "hostVer": "x", + "uniVer": "x", + "unixVer": "x" + } + } + } + */ + complete ?: RequestMerchantTransferCompleteCallback | null +} +export type RequestMerchantTransferCompleteCallback = ( + res : RequestMerchantTransferGeneralCallbackResult +) => void +/** 接口调用失败的回调函数 */ +export type RequestMerchantTransferFailCallback = ( + res : RequestMerchantTransferGeneralCallbackResult +) => void +/** 接口调用成功的回调函数 */ +export type RequestMerchantTransferSuccessCallback = ( + res : RequestMerchantTransferGeneralCallbackResult +) => void +export type RequestMerchantTransferGeneralCallbackResult = { + errMsg : string } \ No newline at end of file