修复设置上传周期失败问题

This commit is contained in:
刘金华 2023-12-21 16:17:15 +08:00
parent 057c386556
commit 12c46700d6
18 changed files with 25 additions and 21 deletions

View File

@ -9,7 +9,7 @@
</map> </map>
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View File

@ -21,8 +21,8 @@ android {
applicationId "net.sysolution.taxiapp" applicationId "net.sysolution.taxiapp"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
versionCode 242 versionCode 244
versionName "3.3.3-beta26.3.9.99-debug" versionName "3.3.3-beta26.4.0.1-release"
//alphaxx - ,bug //alphaxx - ,bug
//Betaxx - //Betaxx -

View File

@ -426,8 +426,8 @@ public class Configurations {
return context.getSharedPreferences("config", Context.MODE_PRIVATE).getInt("logInterval", 0); return context.getSharedPreferences("config", Context.MODE_PRIVATE).getInt("logInterval", 0);
} }
public void logIntervalSave(int x){ public void logIntervalSave(int logInterval){
context.getSharedPreferences("config", Context.MODE_PRIVATE).edit().putInt("screenSizeX", x).apply(); context.getSharedPreferences("config", Context.MODE_PRIVATE).edit().putInt("logInterval", logInterval).apply();
} }
} }

View File

@ -900,18 +900,21 @@ object ConnManger {
it.cancel() it.cancel()
it.purge() it.purge()
} }
//if (Settings.loggerSwitch) { if (interval > 0) {
taxiApp.playerLogSummaryTimer = Timer() //if (Settings.loggerSwitch) {
taxiApp.playerLogSummaryTimer?.schedule(object :TimerTask(){ taxiApp.playerLogSummaryTimer = Timer()
override fun run() { taxiApp.playerLogSummaryTimer?.schedule(object :TimerTask(){
val playLoggers = DaoUtil.getPlayLoggers() override fun run() {
"定时上传日志摘要playLoggers size: ${playLoggers.size}".logd() val playLoggers = DaoUtil.getPlayLoggers()
val requestJson = getLogSummaryJson(playLoggers) "定时上传日志摘要playLoggers size: ${playLoggers.size}".logd()
if (requestJson.isNotEmpty() && logsSummaryTimer == null){ val requestJson = getLogSummaryJson(playLoggers)
sendLogsSummaryToWeb(requestJson) if (requestJson.isNotEmpty() && logsSummaryTimer == null){
sendLogsSummaryToWeb(requestJson)
}
} }
} },interval*60*1000L,interval*60*1000L)
},interval*60*1000L,interval*60*1000L) }
} }
/** /**

View File

@ -153,9 +153,8 @@ object ProcessingCommands {
val sb = logException(e) val sb = logException(e)
YoungUtil.YoungLog("熙讯长连接执行命令出现异常: $sb") YoungUtil.YoungLog("熙讯长连接执行命令出现异常: $sb")
} }
} }
// /** // /**
// *发送排正在播放的广告信息 // *发送排正在播放的广告信息
// */ // */
@ -181,7 +180,7 @@ object ProcessingCommands {
send(response) send(response)
//测试日志上传 //测试日志上传
ConnManger.sendLogsSummary() // ConnManger.sendLogsSummary()
} }
/** /**
@ -290,7 +289,8 @@ object ProcessingCommands {
//edit by yzd @20211201 //edit by yzd @20211201
//Settings.loggerSwitch = loggerSwitch.isTurn_on //Settings.loggerSwitch = loggerSwitch.isTurn_on
Configurations.config(TaxiApp.instance()).loggerSwitchSave(true) Configurations.config(TaxiApp.instance()).loggerSwitchSave(true)
if (loggerInterval.interval>0){ if (loggerInterval.interval > -1){
Configurations.config(TaxiApp.instance()).logIntervalSave(loggerInterval.interval)
ConnManger.sendLogSummaryByInterval(loggerInterval.interval) ConnManger.sendLogSummaryByInterval(loggerInterval.interval)
} }

View File

@ -4,5 +4,5 @@
# Location of the SDK. This is only used by Gradle. # Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the # For customization when using a Version Control System, please read the
# header note. # header note.
#Wed Dec 13 15:22:24 GMT+08:00 2023 #Wed Dec 20 15:01:02 GMT+08:00 2023
sdk.dir=D\:\\Android\\sdk sdk.dir=D\:\\Android\\sdk

1
release/output.json Normal file
View File

@ -0,0 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":244,"versionName":"3.3.3-beta26.4.0.1-release","enabled":true,"outputFile":"TaxiApp_v3.3.3-beta26.4.0.1-release{244}.apk","fullName":"release","baseName":"release","dirName":""},"path":"TaxiApp_v3.3.3-beta26.4.0.1-release{244}.apk","properties":{}}]