[file not exit]
This commit is contained in:
yangyakun
2023-08-04 14:26:40 +08:00
parent fac3d1dd13
commit c04a11e3ad

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(),