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 180 let shareUrl = shareModel.url
181 181 let shareDesc = shareModel.share_desc
182 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 185 } completerBlock: { resultType, platformType, typeString in
186 186 if resultType == .succ{
... ...
metaCode/Classes/Other/AppDelegate.swift
... ... @@ -30,6 +30,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
30 30 JFHeroBrowserGlobalConfig.default.networkImageProvider = HeroNetworkImageProvider.shared
31 31  
32 32 // Override point for customization after application launch.
  33 +
33 34 //tencentAppId wxAppId
34 35 // WXApi.startLog(by: .detail) { log in
35 36 // print("1111:\(log)")
... ... @@ -40,6 +41,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
40 41 // }
41 42 CNLiveShareImageManager().wxAppid = wxAppId
42 43 CNLiveShareImageManager().wxSecret = wxSecret
  44 +
43 45  
44 46 CNLiveNetworking.networkStatus { status in
45 47  
... ... @@ -60,7 +62,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
60 62 //设置APP环境
61 63 CNLiveMCEnvironmentManager.shared.setupEnvironment(environment: .production)
62 64 CNLiveEnvironmentManager.setMetaCodeEnvironment(.productionAppStore)
  65 +
63 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 69 window = UIWindow.init(frame: UIScreen.main.bounds)
66 70 window?.backgroundColor = KVCBackgroupColor
... ... @@ -108,7 +112,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
108 112 AppDelegate_configRequestManager()
109 113 AppDelegate_configIQKeyboardManager()
110 114  
111   -// CNLivePayCostModule.finishLaunchingWithPayPluginSettings()
112 115 CNLivePayCostModule.finishLaunchingWithPayPluginSettings(withWWXAppId: wxAppId, hostURL: universalLinkURL)
113 116  
114 117  
... ...