Skip to content

Commit

Permalink
更新崩坏3签到连接
Browse files Browse the repository at this point in the history
  • Loading branch information
Colter23 committed Nov 1, 2021
1 parent 94decb6 commit a9fa9d3
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 134 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "top.colter"
version = "0.2.2"
version = "0.3.1"

repositories {
mavenLocal()
Expand Down
9 changes: 6 additions & 3 deletions src/main/kotlin/top/colter/mirai/plugin/genshin/Api.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package top.colter.mirai.plugin.genshin

const val ACT_ID = "e202009291139501"
const val BH3_ACT_ID = "e202104072769"
const val APP_VERSION = "2.3.0"
//const val BH3_ACT_ID = "e202104072769"
const val BH3_ACT_ID = "ea20211026151532"
const val APP_VERSION = "2.7.0"

const val USER_AGENT = "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) miHoYoBBS/${APP_VERSION}"

Expand All @@ -14,6 +15,8 @@ const val YS_ROLE_URL = "${ROLE_URL}hk4e_cn"
const val BH3_ROLE_URL = "${ROLE_URL}bh3_cn"

const val AWARD_URL = "https://api-takumi.mihoyo.com/event/bbs_sign_reward/home?act_id=${ACT_ID}"
const val BH3_AWARD_URL = "https://api-takumi.mihoyo.com/common/eutheniav2/outer/index?act_id=${BH3_ACT_ID}"

const val INFO_URL = "https://api-takumi.mihoyo.com/event/bbs_sign_reward/info?region={region}&act_id=${ACT_ID}&uid={uid}"
const val USER_INFO = "https://bbs-api.mihoyo.com/user/wapi/getUserFullInfo?gids=3"

Expand All @@ -26,7 +29,7 @@ fun REFERER_URL(act: String): String {
}

const val BH3_INFO_URL = "https://api-takumi.mihoyo.com/common/euthenia/index?act_id=${BH3_ACT_ID}&region={region}&uid={uid}"
const val BH3_SIGN_URL = "https://api-takumi.mihoyo.com/common/euthenia/sign"
const val BH3_SIGN_URL = "https://api-takumi.mihoyo.com/common/eutheniav2/sign"

fun BH3_INFO_URL(region: String, uid: String): String {
return BH3_INFO_URL.replace("{region}", region).replace("{uid}", uid)
Expand Down
Loading

0 comments on commit a9fa9d3

Please sign in to comment.