This commit is contained in:
Mikołaj Pich 2024-05-29 16:36:05 +02:00
parent c8fb4478ce
commit 1f6a0471e5
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -792,7 +792,7 @@ internal val ApiEndpointsVTokenMap = mapOf(
"UczenCache.mvc" to "1BzK3", "UczenCache.mvc" to "1BzK3",
"Homework.mvc" to "bQFjG", "Homework.mvc" to "bQFjG",
"SzkolaINauczyciele.mvc" to "fWw8j4JOE", "SzkolaINauczyciele.mvc" to "fWw8j4JOE",
"Ogloszenia.mvc" to "XKkaYNx" "Ogloszenia.mvc" to "XKkaYNx",
), ),
), ),
) )

View file

@ -360,7 +360,9 @@ private fun HttpUrl.getMatchedVHeader(moduleHost: String, domainSchema: String?,
(Scrapper.vTokenMap[headers?.appVersion] ?: ApiEndpointsVTokenMap[headers?.appVersion]) (Scrapper.vTokenMap[headers?.appVersion] ?: ApiEndpointsVTokenMap[headers?.appVersion])
?.get(moduleHost) ?.get(moduleHost)
?.get("$pathKey/$pathKeySub") ?.get("$pathKey/$pathKeySub")
} else mappedSimpleUuid } else {
mappedSimpleUuid
}
return getVToken( return getVToken(
uuid = mappedUuid ?: return null, uuid = mappedUuid ?: return null,