[6.8.0]
[fea] [添加地图参数]
This commit is contained in:
@@ -110,7 +110,13 @@ object MogoAnalyticUtils {
|
||||
e.printStackTrace()
|
||||
properties["network_type"] = "获取设备网络状态错误"
|
||||
}
|
||||
Analytics.getInstance().track(event, properties)
|
||||
if(ThreadUtils.isMainThread()){
|
||||
ThreadUtils.getIoPool().submit{
|
||||
Analytics.getInstance().track(event, properties)
|
||||
}
|
||||
}else{
|
||||
Analytics.getInstance().track(event, properties)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -120,7 +126,13 @@ object MogoAnalyticUtils {
|
||||
* @param properties json事件参数
|
||||
*/
|
||||
fun track(event: String?, properties: JSONObject) {
|
||||
Analytics.getInstance().track(event, properties)
|
||||
if(ThreadUtils.isMainThread()){
|
||||
ThreadUtils.getIoPool().submit{
|
||||
Analytics.getInstance().track(event, properties)
|
||||
}
|
||||
}else{
|
||||
Analytics.getInstance().track(event, properties)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user