[3.3.0]fix bug of network on main thread
This commit is contained in:
@@ -323,8 +323,6 @@ class HttpDnsStartUp : AndroidStartup<Boolean>() {
|
||||
//todo 归一处理
|
||||
private fun getPrReason(msg: String): String {
|
||||
val map = hashMapOf<String, Any>()
|
||||
map["wifiState"] =
|
||||
if (NetworkUtils.isAvailable()) "wifi enable" else "wifi disable"
|
||||
map["lat"] =
|
||||
if (CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().latitude != 0.0)
|
||||
CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().latitude else
|
||||
@@ -334,7 +332,6 @@ class HttpDnsStartUp : AndroidStartup<Boolean>() {
|
||||
CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().longitude else
|
||||
CallerMapUIServiceManager.getGDLocationServer(context!!)!!.lastLon
|
||||
map["reason"] = msg
|
||||
map["time"] = System.currentTimeMillis()
|
||||
return GsonUtils.toJson(map)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user