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

Commit

Permalink
Shamrock: fix #258
Browse files Browse the repository at this point in the history
Signed-off-by: 白池 <[email protected]>
  • Loading branch information
whitechi73 committed Feb 26, 2024
1 parent 964c55d commit a9a2e9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ fun Routing.otherAction() {
val url = fetchOrNull("url")
val b64 = fetchOrNull("base64")
val name = fetchOrNull("name")
val root = fetchOrNull("root")
val threadCnt = fetchOrNull("thread_cnt")?.toInt() ?: 0
val headers = fetchOrNull("headers") ?: ""
call.respondText(DownloadFile(url, b64, threadCnt, headers.split("\r\n"), name), ContentType.Application.Json)
call.respondText(DownloadFile(url, b64, threadCnt, headers.split("\r\n"), name, root), ContentType.Application.Json)
}

post("/upload_file") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ internal object GlobalEventTransmitter: BaseSvc() {
type = NoticeType.GroupAdminChange,
subType = if (setAdmin) NoticeSubType.Set else NoticeSubType.UnSet,
operatorId = 0,
userId = target,
userUid = targetUid,
target = target,
targetUid = targetUid,
groupId = groupCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal enum class NoticeSubType {
@SerialName("lift_ban") LiftBan,

@SerialName("set") Set,
@SerialName("un_set") UnSet,
@SerialName("unset") UnSet,

@SerialName("add") Add,
@SerialName("invite") Invite,
Expand Down

0 comments on commit a9a2e9a

Please sign in to comment.