Commit 5a0b75db by patpat

修改log压缩包名称格式

parent db061a89
package com.bgycc.smartcanteen.action package com.bgycc.smartcanteen.action
import com.bgycc.smartcanteen.App
import com.bgycc.smartcanteen.BuildConfig import com.bgycc.smartcanteen.BuildConfig
import com.bgycc.smartcanteen.server.http.MainHttpClient import com.bgycc.smartcanteen.server.http.MainHttpClient
import com.bgycc.smartcanteen.util.LogUtil import com.bgycc.smartcanteen.util.LogUtil
...@@ -62,7 +63,7 @@ object LogAction : Action(ActionEnum.LOG_PULL.name) { ...@@ -62,7 +63,7 @@ object LogAction : Action(ActionEnum.LOG_PULL.name) {
} }
ZipUtils.zipFile(logUploadDir, logZipFile) ZipUtils.zipFile(logUploadDir, logZipFile)
FileUtils.deleteDir(logUploadDir) FileUtils.deleteDir(logUploadDir)
MainHttpClient.uploadLog(logZipFile, "$type${formatSrc.format(endTime)}.zip") MainHttpClient.uploadLog(logZipFile, "$type${formatSrc.format(startTime)}${formatSrc.format(endTime)}${App.getDeviceSN()}.zip")
state = State.INITED state = State.INITED
}.start() }.start()
} catch (e: Exception) {} } catch (e: Exception) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment