endian11
2020-08-13 a927c72c0f06ef5bd771e5ae00bc35155c271762
app/src/main/java/safeluck/drive/evaluation/DB/rtktb/RTKConfigUpdateWorker.kt
@@ -7,8 +7,8 @@
import android.widget.Toast
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.anyun.basecommonlib.MyLog
import com.anyun.exam.lib.AYSdk
import com.anyun.exam.lib.MyLog
import com.google.gson.Gson
import okhttp3.ResponseBody
import org.json.JSONException
@@ -128,7 +128,7 @@
                                                MyLog.i(PlatFormConstant.HTTPTAG,"科三场地地图保存成功")
                                                str = gson.toJson(yard.data.map_json)
                                                FileUtil.writeTxtFileToSD(applicationContext,fileName,str,"")
//                                                sendMapInfo()
                                                sendMapInfo()
                                            })
                                        }
                                    }
@@ -146,7 +146,7 @@
                                            str = gson.toJson(car.data.map_json)
                                            MyLog.i(PlatFormConstant.HTTPTAG,"车辆模型保存成功")
                                            FileUtil.writeTxtFileToSD(applicationContext,fileName,str,"")
//                                            sendVehicleInfo()
                                            sendVehicleInfo()
                                        })
                                    }
@@ -161,12 +161,12 @@
            })
        }else{
//            MyLog.i(PlatFormConstant.HTTPTAG,"已存在直接发送车辆和地图"+fileName)
//            when(type){
//                "road" -> sendRoadMapInfo()
//                "yard" -> sendMapInfo()
//                else -> sendVehicleInfo()
//            }
            MyLog.i(PlatFormConstant.HTTPTAG,"已存在直接发送车辆和地图"+fileName)
            when(type){
                "road" -> sendRoadMapInfo()
                "yard" -> sendMapInfo()
                else -> sendVehicleInfo()
            }
        }
    }