Commit 171929d9 authored by Him188's avatar Him188

Add warning log

parent d1153e3c
...@@ -127,7 +127,7 @@ internal class MessageSvc { ...@@ -127,7 +127,7 @@ internal class MessageSvc {
val resp = readProtoBuf(MsgSvc.PbGetMsgResp.serializer()) val resp = readProtoBuf(MsgSvc.PbGetMsgResp.serializer())
if (resp.result != 0) { if (resp.result != 0) {
// println("!!! Result=${resp.result} !!!: " + resp.contentToString()) bot.network.logger.warning("MessageSvc.PushNotify: result != 0, result = ${resp.result}, errorMsg=${resp.errmsg}")
return EmptyResponse return EmptyResponse
} }
...@@ -149,7 +149,7 @@ internal class MessageSvc { ...@@ -149,7 +149,7 @@ internal class MessageSvc {
val group = bot.getGroupByUinOrNull(msg.msgHead.fromUin) val group = bot.getGroupByUinOrNull(msg.msgHead.fromUin)
if (msg.msgHead.authUin == bot.uin) { if (msg.msgHead.authUin == bot.uin) {
if (group != null) { if (group != null) {
error("group is not null while bot is invited to the group") return@mapNotNull null
} }
// 新群 // 新群
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment