mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: friend poke event detail fix #103
This commit is contained in:
parent
c6dad5677c
commit
85aaa54e4e
@ -395,7 +395,7 @@ internal object GlobalEventTransmitter: BaseSvc() {
|
|||||||
* 私聊通知 通知器
|
* 私聊通知 通知器
|
||||||
*/
|
*/
|
||||||
object PrivateNoticeTransmitter {
|
object PrivateNoticeTransmitter {
|
||||||
suspend fun transPrivatePoke(msgTime: Long, operation: Long, target: Long): Boolean {
|
suspend fun transPrivatePoke(msgTime: Long, operation: Long, target: Long, action: String?, suffix: String?, actionImg: String?): Boolean {
|
||||||
pushNotice(NoticeEvent(
|
pushNotice(NoticeEvent(
|
||||||
time = msgTime,
|
time = msgTime,
|
||||||
selfId = app.longAccountUin,
|
selfId = app.longAccountUin,
|
||||||
@ -405,7 +405,12 @@ internal object GlobalEventTransmitter: BaseSvc() {
|
|||||||
operatorId = operation,
|
operatorId = operation,
|
||||||
userId = operation,
|
userId = operation,
|
||||||
senderId = operation,
|
senderId = operation,
|
||||||
target = target
|
target = target,
|
||||||
|
pokeDetail = PokeDetail(
|
||||||
|
actionImg = actionImg,
|
||||||
|
action = action,
|
||||||
|
suffix = suffix
|
||||||
|
)
|
||||||
))
|
))
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -96,6 +96,9 @@ internal object PrimitiveListener {
|
|||||||
|
|
||||||
lateinit var target: String
|
lateinit var target: String
|
||||||
lateinit var operation: String
|
lateinit var operation: String
|
||||||
|
var suffix: String? = null
|
||||||
|
var actionImg: String? = null
|
||||||
|
var action: String? = null
|
||||||
detail[7]
|
detail[7]
|
||||||
.asList
|
.asList
|
||||||
.value
|
.value
|
||||||
@ -104,12 +107,17 @@ internal object PrimitiveListener {
|
|||||||
when(it[1].asUtf8String) {
|
when(it[1].asUtf8String) {
|
||||||
"uin_str1" -> operation = value
|
"uin_str1" -> operation = value
|
||||||
"uin_str2" -> target = value
|
"uin_str2" -> target = value
|
||||||
|
"action_str" -> action = value
|
||||||
|
"alt_str1" -> action = value
|
||||||
|
"suffix_str" -> suffix = value
|
||||||
|
"action_img_url" -> actionImg = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LogCenter.log("私聊戳一戳: $operation -> $target")
|
|
||||||
|
LogCenter.log("私聊戳一戳: $operation $action $target $suffix")
|
||||||
|
|
||||||
if(!GlobalEventTransmitter.PrivateNoticeTransmitter
|
if(!GlobalEventTransmitter.PrivateNoticeTransmitter
|
||||||
.transPrivatePoke(msgTime, operation.toLong(), target.toLong())) {
|
.transPrivatePoke(msgTime, operation.toLong(), target.toLong(), action, suffix, actionImg)) {
|
||||||
LogCenter.log("私聊戳一戳推送失败!", Level.WARN)
|
LogCenter.log("私聊戳一戳推送失败!", Level.WARN)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user