🆗 修改打卡时取项目信息的位置,从dakajson根元素获取,而不是从打卡记录中

🆗 修改多个项目打卡时,取最后一个项目打卡信息
🆗 如果最近一次打卡结束没有设备信息,则从最新一次开始打卡获取
This commit is contained in:
jimlee
2023-01-13 10:51:51 +08:00
parent 926d74c390
commit ae4eac8adc
4 changed files with 67 additions and 16 deletions

View File

@@ -276,6 +276,9 @@ class HoperunSignController(
if (lastDakaInfo.getString("actual_area_end") != null) {
val area: String = lastDakaInfo.getString("actual_area_end")
userConfig.device = area.substring(area.lastIndexOf("Qing") + 13)
} else if (lastDakaInfo.getString("actual_area_begin") != null) {
val area: String = lastDakaInfo.getString("actual_area_begin")
userConfig.device = area.substring(area.lastIndexOf("Qing") + 13)
} else {
userConfig.device = null
}