Commit ec004ef67c5592d2de121709cf7bb7ffdcc149ae

Authored by “张旭”
1 parent 089a464f

微信支付 , 分享

metaCode/Classes/Main/HomePage/Controller/WebController/CNWebView.swift
@@ -180,7 +180,7 @@ class CNWebView:UIView,WKNavigationDelegate, WKScriptMessageHandler,WKUIDelegate @@ -180,7 +180,7 @@ class CNWebView:UIView,WKNavigationDelegate, WKScriptMessageHandler,WKUIDelegate
180 let shareUrl = shareModel.url 180 let shareUrl = shareModel.url
181 let shareDesc = shareModel.share_desc 181 let shareDesc = shareModel.share_desc
182 let shareImage = shareModel.share_img 182 let shareImage = shareModel.share_img
183 - CNLiveShareManager.showShareViewWithParam(forShareTitle: shareTitle, shareUrl: shareUrl, shareDesc: shareDesc, shareImage: shareImage, screenFull: false, hiddenWjj: true, hiddenQQ: false, hiddenWB: true, hiddenLifeCircle: true, hiddenWechatCircle: false, hiddenWechat: false, hiddenSafari: true, formVC: currentViewController(), topImage: [], topTitles: [], platformType: .all) { title in 183 + CNLiveShareManager.showShareViewWithParam(forShareTitle: shareTitle, shareUrl: "https://wjjh5.cnlive.com/apkdownloadYuanma.php", shareDesc: shareDesc, shareImage: shareImage, screenFull: false, hiddenWjj: true, hiddenQQ: false, hiddenWB: true, hiddenLifeCircle: true, hiddenWechatCircle: false, hiddenWechat: false, hiddenSafari: true, formVC: currentViewController(), topImage: [], topTitles: [], platformType: .all) { title in
184 184
185 } completerBlock: { resultType, platformType, typeString in 185 } completerBlock: { resultType, platformType, typeString in
186 if resultType == .succ{ 186 if resultType == .succ{
metaCode/Classes/Other/AppDelegate.swift
@@ -30,6 +30,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { @@ -30,6 +30,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
30 JFHeroBrowserGlobalConfig.default.networkImageProvider = HeroNetworkImageProvider.shared 30 JFHeroBrowserGlobalConfig.default.networkImageProvider = HeroNetworkImageProvider.shared
31 31
32 // Override point for customization after application launch. 32 // Override point for customization after application launch.
  33 +
33 //tencentAppId wxAppId 34 //tencentAppId wxAppId
34 // WXApi.startLog(by: .detail) { log in 35 // WXApi.startLog(by: .detail) { log in
35 // print("1111:\(log)") 36 // print("1111:\(log)")
@@ -40,6 +41,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { @@ -40,6 +41,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
40 // } 41 // }
41 CNLiveShareImageManager().wxAppid = wxAppId 42 CNLiveShareImageManager().wxAppid = wxAppId
42 CNLiveShareImageManager().wxSecret = wxSecret 43 CNLiveShareImageManager().wxSecret = wxSecret
  44 +
43 45
44 CNLiveNetworking.networkStatus { status in 46 CNLiveNetworking.networkStatus { status in
45 47
@@ -60,7 +62,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { @@ -60,7 +62,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
60 //设置APP环境 62 //设置APP环境
61 CNLiveMCEnvironmentManager.shared.setupEnvironment(environment: .production) 63 CNLiveMCEnvironmentManager.shared.setupEnvironment(environment: .production)
62 CNLiveEnvironmentManager.setMetaCodeEnvironment(.productionAppStore) 64 CNLiveEnvironmentManager.setMetaCodeEnvironment(.productionAppStore)
  65 +
63 CNLivePaySDK.sharedCNLivePayManager().registerApp(CNLiveMCEnvironmentManager.shared.appId_wjj, appKey: CNLiveMCEnvironmentManager.shared.appKey_wjj, isTestEnvironment: false) 66 CNLivePaySDK.sharedCNLivePayManager().registerApp(CNLiveMCEnvironmentManager.shared.appId_wjj, appKey: CNLiveMCEnvironmentManager.shared.appKey_wjj, isTestEnvironment: false)
  67 + CNLivePaySDK.sharedCNLivePayManager().registerWXApi(withWXAppId: wxAppId, universalLink: universalLinkURL)
64 68
65 window = UIWindow.init(frame: UIScreen.main.bounds) 69 window = UIWindow.init(frame: UIScreen.main.bounds)
66 window?.backgroundColor = KVCBackgroupColor 70 window?.backgroundColor = KVCBackgroupColor
@@ -108,7 +112,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { @@ -108,7 +112,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
108 AppDelegate_configRequestManager() 112 AppDelegate_configRequestManager()
109 AppDelegate_configIQKeyboardManager() 113 AppDelegate_configIQKeyboardManager()
110 114
111 -// CNLivePayCostModule.finishLaunchingWithPayPluginSettings()  
112 CNLivePayCostModule.finishLaunchingWithPayPluginSettings(withWWXAppId: wxAppId, hostURL: universalLinkURL) 115 CNLivePayCostModule.finishLaunchingWithPayPluginSettings(withWWXAppId: wxAppId, hostURL: universalLinkURL)
113 116
114 117