| | |
| | | * 场景类型判定 |
| | | * @return 判断结果,(是否使用本系统定义,类型值) |
| | | */ |
| | | fun checkSceneType(sceneType: Int): Pair<Boolean, Int> { |
| | | fun checkSceneType(sceneType: Int?): Pair<Boolean, Int?> { |
| | | // TODO: 2023/9/7 通过数据库配置表决定当前类型的最终类型定义 |
| | | |
| | | // FIXME: 2023/9/7 暂时写死相关配置 |
| | | return if (sceneType.toString() == Constant.ScenseType.TYPE6.value) { |
| | | Pair(false, Constant.ScenseType.typeMap(sceneType.toByte())!!.toInt()) |
| | | return if (sceneType.toString() == Constant.SceneType.TYPE6.value) { |
| | | Pair(false, Constant.SceneType.typeMap(sceneType?.toByte())!!.toInt()) |
| | | } else { |
| | | Pair(true, sceneType) |
| | | } |