mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 05:12:17 +00:00
Compare commits
4 Commits
1.0.9
...
be9ff46134
Author | SHA1 | Date | |
---|---|---|---|
be9ff46134 | |||
1d6ac3e022 | |||
2db187e3d5 | |||
18ec586b12 |
4
.github/workflows/build-apk.yml
vendored
4
.github/workflows/build-apk.yml
vendored
@ -3,7 +3,7 @@ name: Build Shamrock APK
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [ v1.0.9 ]
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- '**.txt'
|
||||
@ -97,4 +97,4 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "${{ env.SHAMROCK_VERSION_x86_64 }}"
|
||||
path: "${{ env.APK_FILE_X86_64 }}"
|
||||
path: "${{ env.APK_FILE_X86_64 }}"
|
||||
|
@ -21,19 +21,19 @@ private fun formatFileName(file: String): String = file
|
||||
|
||||
fun Routing.fetchRes() {
|
||||
getOrPost("/get_record") {
|
||||
val file = formatFileName( fetchGetOrThrow("file") )
|
||||
val file = formatFileName( fetchOrThrow("file") )
|
||||
val format = fetchOrThrow("out_format")
|
||||
call.respondText(GetRecord(file, format), ContentType.Application.Json)
|
||||
}
|
||||
|
||||
getOrPost("/get_file") {
|
||||
val file = formatFileName( fetchGetOrThrow("file") )
|
||||
val file = formatFileName( fetchOrThrow("file") )
|
||||
val fileType = fetchOrThrow("file_type")
|
||||
call.respondText(GetFile(file, fileType), ContentType.Application.Json)
|
||||
}
|
||||
|
||||
getOrPost("/get_image") {
|
||||
val file = formatFileName( fetchGetOrThrow("file") )
|
||||
val file = formatFileName( fetchOrThrow("file") )
|
||||
call.respondText(GetImage(file), ContentType.Application.Json)
|
||||
}
|
||||
|
||||
|
@ -372,8 +372,18 @@ internal object PrimitiveListener {
|
||||
}
|
||||
|
||||
val operatorUid = event.operatorUid
|
||||
val operator = ContactHelper.getUinByUidAsync(operatorUid).toLong()
|
||||
val target = ContactHelper.getUinByUidAsync(targetUid).toLong()
|
||||
var operator = ContactHelper.getUinByUidAsync(operatorUid).toLong()
|
||||
var target = ContactHelper.getUinByUidAsync(targetUid).toLong()
|
||||
if (target== 0.toLong()){
|
||||
GroupSvc.getTroopMemberInfoByUid(groupCode,targetUid).onSuccess {
|
||||
target=it.uin
|
||||
}
|
||||
}
|
||||
if (operator== 0.toLong()){
|
||||
GroupSvc.getTroopMemberInfoByUid(groupCode,operatorUid).onSuccess {
|
||||
operator=it.uin
|
||||
}
|
||||
}
|
||||
LogCenter.log("群成员增加($groupCode): $target, type = $type")
|
||||
|
||||
if (!GlobalEventTransmitter.GroupNoticeTransmitter
|
||||
|
Reference in New Issue
Block a user