18034727885
2026-06-05 ae2ae3bd0ccec7eb4d23d48f30e91cd1416431d4
修复问题
2个文件已修改
11 ■■■■■ 已修改文件
app/src/main/java/com/xw/yunwei/model/CruiseCheckInOperationInfo.kt 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/xw/yunwei/ui/work/checkInMission/viewmodel/CruiseCheckInViewModel.kt 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/com/xw/yunwei/model/CruiseCheckInOperationInfo.kt
@@ -6,10 +6,10 @@
//巡游打卡操作信息
@Parcelize
class CruiseCheckInOperationInfo(
    val checkLocationId: String?,//巡游打卡点位id
    val message: String?,//提示内容
    val messageType: String?,//消息类型(1=即将超时提醒,2=到达打卡点提醒)
    val isInRange: Boolean?,//是否在打卡范围内
    val checkLocationId: String? = null,//巡游打卡点位id
    val message: String? = null,//提示内容
    val messageType: String? = null,//消息类型(1=即将超时提醒,2=到达打卡点提醒)
    val isInRange: Boolean? = null,//是否在打卡范围内
) : Parcelable {
    //是否有效
    fun isEffective() = (checkLocationId?.toIntOrNull() ?: 0) > 0
app/src/main/java/com/xw/yunwei/ui/work/checkInMission/viewmodel/CruiseCheckInViewModel.kt
@@ -123,6 +123,9 @@
            this.checkIn = checkIn
            this.checkInResult = checkInResult
        }
        if (checkInOperationInfo.value?.checkLocationId == locationId) {
            checkInOperationInfo.postValue(CruiseCheckInOperationInfo())
        }
        val endPoint = getEndPoint()
        if (endPoint == null) {
            finish()