webview的goTraining更改

This commit is contained in:
ddisfriend
2024-10-14 16:47:33 +08:00
parent 50586fcbfc
commit 57643601ce
3 changed files with 5 additions and 5 deletions

View File

@@ -122,8 +122,8 @@ extension WebViewController : WKScriptMessageHandler {
if action == "goBack" {
navigationController?.popViewController(animated: true)
}else if action == "goTraining" {
let params = dict?["params"] as? [String:String]
let id = params?["id"] as? String
let params = dict?["params"] as? [String:Any]
let id = params?["id"] as? Int
if let supplierId = USER.supplierId,let userId = USER.userId, let id {
WEBTOOL.open(name: .docmentDetail, appending: "&supplierId=\(supplierId)&userId=\(userId)&id=\(id)")
}

View File

@@ -5,17 +5,17 @@
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000217">
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000167">
</testcase>
<testcase classname="fastlane.lanes" name="1: gym" time="114.897249">
<testcase classname="fastlane.lanes" name="1: gym" time="87.011582">
</testcase>
<testcase classname="fastlane.lanes" name="2: pgyer" time="25.830574">
<testcase classname="fastlane.lanes" name="2: pgyer" time="23.993516">
</testcase>