[file not exit]
This commit is contained in:
yangyakun
2023-08-04 14:26:40 +08:00
committed by zhongchao
parent e85a90e69e
commit dd30dbffcc

View File

@@ -74,10 +74,10 @@ object DebugDataDispatch {
fun getLocaitonByLog(path:String) {
ThreadUtils.getIoPool().execute {
val inputStream = FileInputStream(path)
val reader = BufferedReader(InputStreamReader(inputStream))
var line: String? = ""
try {
val inputStream = FileInputStream(path)
val reader = BufferedReader(InputStreamReader(inputStream))
var line: String? = ""
while (reader.readLine().also { line = it } != null) {
val list = GsonUtils.fromJson<MogoLocationExit>(
line.toString(),