Commit 06caf6679b55328c37aa382450390c9d386fdac3

Authored by liushiyu
1 parent 7604f2ab

0.1.5

CNLivePayCostModule.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLivePayCostModule'
11   - s.version = '0.1.4'
  11 + s.version = '0.1.5'
12 12 s.summary = 'A short description of CNLivePayCostModule.'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLivePayCostModule/Classes/Core/CNLivePayCostModule.h
... ... @@ -15,6 +15,11 @@ NS_ASSUME_NONNULL_BEGIN
15 15 /// 启动设置
16 16 +(void)finishLaunchingWithPayPluginSettings;
17 17  
  18 +/// 启动设置
  19 +/// @param wxAppId 微信 id
  20 +/// @param hostURL 跳转链接
  21 ++(void)finishLaunchingWithPayPluginSettingsWithWWXAppId:(NSString *)wxAppId HostURL:(NSString *)hostURL;
  22 +
18 23 /// 拉起网家家支付功能
19 24 /// @param paramDict 参数 (详细见.m中参数解释)
20 25 /// @param payCostType 支付来源路径
... ...
CNLivePayCostModule/Classes/Core/CNLivePayCostModule.m
... ... @@ -26,6 +26,17 @@
26 26 [UMSPPPayUnifyPayPlugin registerApp:WeiChatAppId_Share universalLink:[NSString stringWithFormat:@"%@/",API_Host]];
27 27 }
28 28  
  29 +/// 启动设置
  30 +/// @param wxAppId 微信 id
  31 +/// @param hostURL 跳转链接
  32 ++(void)finishLaunchingWithPayPluginSettingsWithWWXAppId:(NSString *)wxAppId HostURL:(NSString *)hostURL
  33 +{
  34 + [UMSPPPayPluginSettings sharedInstance].umspEnviroment = UMSP_PROD;
  35 +
  36 + //注册微信支付
  37 + [UMSPPPayUnifyPayPlugin registerApp:wxAppId universalLink:[NSString stringWithFormat:@"%@/",hostURL]];
  38 +}
  39 +
29 40 /// 拉起网家家支付功能
30 41 /// @param paramDict 参数 (详细见.m中参数解释)
31 42 /// @param payCostType 支付来源路径
... ...