Forráskód Böngészése

修改h5地址位置的

南鑫林 5 éve
szülő
commit
6871e717d9

+ 2 - 2
RainbowPlanet/RainbowPlanet/Manager/WebViewJavascriptBridgeManager/WebViewJavascriptBridgeManager.swift

@@ -77,8 +77,8 @@ class WebViewJavascriptBridgeManager: NSObject {
         dictionary.updateValue("location", forKey: "type")
         var locationDictionary = Dictionary<String,Any>()
         locationDictionary.updateValue(address as Any, forKey: "address")
-        locationDictionary.updateValue(latitude as Any, forKey: "latitude")
-        locationDictionary.updateValue(longitude as Any, forKey: "longitude")
+        locationDictionary.updateValue(latitude as Any, forKey: "lat")
+        locationDictionary.updateValue(longitude as Any, forKey: "lng")
         dictionary.updateValue(locationDictionary, forKey: "params")
         NXLLog(JSON(dictionary))
         bridge?.callHandler("h5", data: dictionary)