Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
feat: 删除调试信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Catrainbow233 committed Sep 23, 2023
1 parent 608e675 commit 424eb1a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sdk-main/src/main/kotlin/cn/hoyobot/sdk/network/BotEntry.kt
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ class BotEntry {
request.form(params)
request.method(method)
val result = request.execute()
if (JSONObject(result).getInt("retcode") != 0) {
HoyoBot.instance.getLogger().error("在发起请求时出现错误!\n原因: ${JSONObject(result).getStr("message")}")
}
if (debug) HoyoBot.instance.getLogger().debug(result.body())
return result
} else {
Expand All @@ -209,9 +206,6 @@ class BotEntry {
) else this.botSecret
map["x-rpc-bot_villa_id"] = this.villaID
val result = HttpRequest.post(api).addHeaders(map).body(params.toString()).timeout(5 * 60 * 1000).execute()
if (JSONObject(result).getInt("retcode") != 0) {
HoyoBot.instance.getLogger().error("在发起请求时出现错误!\n原因: ${JSONObject(result).getStr("message")}")
}
if (debug) HoyoBot.instance.getLogger().debug(result.body())
return result
}
Expand Down

0 comments on commit 424eb1a

Please sign in to comment.