Skip to content

Commit

Permalink
Fix thailand search on old play ver (yujincheng08#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb2060 authored Mar 12, 2021
1 parent 8a7c7e3 commit ff615b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class BangumiSeasonHook(classLoader: ClassLoader) : BaseHook(classLoader) {

private fun Class<*>.fromJson(json: String) = when {
isSerializable -> jsonNonStrict.value?.callMethod("parse", getStaticObjectField("Companion")?.callMethod("serializer"), json)
isGson -> gson?.callMethod(instance?.gsonFromjson(), json, this)
isGson -> gson?.callMethod(instance.gsonFromjson(), json, this)
else -> instance.fastJsonClass?.callStaticMethod(instance.fastJsonParse(), json, this)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ object BiliRoamingApi {
"platform" to "android",
"s_locale" to "zh_SG",
"c_locale" to "zh_SG",
"sim_code" to "52004",
"lang" to "hans",
)))
.toString()
Expand Down

0 comments on commit ff615b0

Please sign in to comment.