From f646fbebad928833d15546a36e37768d00fe6173 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期三, 16 四月 2025 16:39:18 +0800
Subject: [PATCH] fix

---
 WanPai/Common/VC/CommonWebVC.swift |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/WanPai/Common/VC/CommonWebVC.swift b/WanPai/Common/VC/CommonWebVC.swift
index 79f5770..cb3b326 100644
--- a/WanPai/Common/VC/CommonWebVC.swift
+++ b/WanPai/Common/VC/CommonWebVC.swift
@@ -35,6 +35,11 @@
 								view_btns.isHidden = true
 								webView.navigationDelegate = self
 
+        yy_popBlock = {[unowned self] in
+            NotificationCenter.default.post(name: Noti_showSheetView, object: nil)
+            self.navigationController?.popViewController(animated: true)
+        }
+
 								if type != .other{
 												title = type.titleStr
 
@@ -44,6 +49,11 @@
 																title = type.titleStr
 												}
 
+            if !content.isEmpty{
+                webView.loadHTMLString(content!.jq_wrapHtml(), baseURL: nil)
+                return
+            }
+
 												Services.queryProtocol(type,progress: false).subscribe(onNext: {[weak self] result in
 																if let text = result.data?.jq_wrapHtml(edge: .init(top: 5, left:0, bottom: 0, right: 0)){
 																				self?.webView.loadHTMLString(text, baseURL: nil)

--
Gitblit v1.7.1