From 0d174dcda0042462135e3eab7841d3b1524b5a5b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 9 Jul 2020 18:56:50 +0800 Subject: [PATCH] fix: Fix wrong parameter name. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 30e0ee3..285dc55 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ export default class Alipay { * @param callback 支付宝回调结果 详情见 https://docs.open.alipay.com/204/105301 */ static alipay(orderInfo, callback) { - NativeModules.Alipay.alipay(orderInfo, callback) + NativeModules.Alipay.alipay(orderInfo, callback) } /** @@ -25,7 +25,7 @@ export default class Alipay { * 设置支付宝沙箱环境,仅 Android * @param isSandBox */ - static setAlipaySandbox(isSandbox) { + static setAlipaySandbox(isSandBox) { if (Platform.OS === 'android') { NativeModules.Alipay.setAlipaySandbox(isSandBox); }