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

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>
</option>
</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" />
</component>
<component name="ProjectType">

View File

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

View File

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

View File

@ -900,6 +900,7 @@ object ConnManger {
it.cancel()
it.purge()
}
if (interval > 0) {
//if (Settings.loggerSwitch) {
taxiApp.playerLogSummaryTimer = Timer()
taxiApp.playerLogSummaryTimer?.schedule(object :TimerTask(){
@ -914,6 +915,8 @@ object ConnManger {
},interval*60*1000L,interval*60*1000L)
}
}
/**
* 发送运行日志
*/

View File

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

View File

@ -4,5 +4,5 @@
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# 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

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":{}}]