Commit f633aecc by pierce

fixed 富豪等级的bug

parent 6196bc87
...@@ -803,7 +803,9 @@ public class GDWebView: WKWebView, WKNavigationDelegate, WKScriptMessageHandler ...@@ -803,7 +803,9 @@ public class GDWebView: WKWebView, WKNavigationDelegate, WKScriptMessageHandler
} }
public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) { public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
let urlStr = navigationAction.request.url?.absoluteString ?? "" var urlStr = navigationAction.request.url?.absoluteString ?? ""
urlStr.replacingOccurrences(of: "/eggplant/", with: "/xs/")
if urlStr.contains("weixin://") { if urlStr.contains("weixin://") {
if let url = URL(string: urlStr) { if let url = URL(string: urlStr) {
if UIApplication.shared.canOpenURL(url) { if UIApplication.shared.canOpenURL(url) {
......
...@@ -110,7 +110,10 @@ open class GDWebViewController: BaseViewController, GDWebViewControllerType { ...@@ -110,7 +110,10 @@ open class GDWebViewController: BaseViewController, GDWebViewControllerType {
webView.titlePublished.subscribe(onNext: { [weak self] (title) in webView.titlePublished.subscribe(onNext: { [weak self] (title) in
guard let self = self else {return} guard let self = self else {return}
self.title = title var webTitle = title.replacingOccurrences(of: "果冻", with: "羞涩")
webTitle = webTitle.replacingOccurrences(of: "果券", with: "小券")
webTitle = webTitle.replacingOccurrences(of: "直播", with: "")
self.title = webTitle
}).disposed(by: disposeBag) }).disposed(by: disposeBag)
self.view.addSubview(progressView) self.view.addSubview(progressView)
......
...@@ -35,7 +35,6 @@ class GDChatMessageHttpHelper { ...@@ -35,7 +35,6 @@ class GDChatMessageHttpHelper {
return chatMessageProvider.upload(.serviceChatUploadImage(image: image)) return chatMessageProvider.upload(.serviceChatUploadImage(image: image))
} }
/// 上报消息已读 /// 上报消息已读
/// - Parameter mid: mid /// - Parameter mid: mid
/// - Returns: /// - Returns:
......
...@@ -47,7 +47,8 @@ class GDRichLevelPriviledgeCell: UICollectionViewCell { ...@@ -47,7 +47,8 @@ class GDRichLevelPriviledgeCell: UICollectionViewCell {
self.contentView.addSubview(iconImageView) self.contentView.addSubview(iconImageView)
iconImageView.snp.makeConstraints { (make) in iconImageView.snp.makeConstraints { (make) in
make.width.height.equalTo(50) make.height.equalTo(50)
make.width.equalTo(100)
make.top.equalToSuperview().offset(8) make.top.equalToSuperview().offset(8)
make.centerX.equalToSuperview() make.centerX.equalToSuperview()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment