Commit f21193ab authored by Steven杜宇's avatar Steven杜宇

// H5埋点传参

parent 95a857af
......@@ -143,6 +143,13 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
api.delegate = self
webview.addJavascriptObject(api, namespace: nil)
if url.contains("?") {
url = self.url + "&uid=\(YHLoginManager.shared.userModel?.id ?? "0")"
} else {
url = self.url + "?uid=\(YHLoginManager.shared.userModel?.id ?? "0")"
}
if let url = URL(string: url) {
let request = URLRequest(url: url)
webview.load(request)
......
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 to comment