Skip to content

Commit

Permalink
Beta125 (#296)
Browse files Browse the repository at this point in the history
* beta122

* beta123

* beta124

* beta124

* beta124
  • Loading branch information
Hoshinonyaruko authored Jan 11, 2024
1 parent 72e841f commit 88e408a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion handlers/send_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,23 @@ func HandleSendMsg(client callapi.Client, api openapi.OpenAPI, apiv2 openapi.Ope
if msgType == "" {
msgType = GetMessageTypeByGroupid(config.GetAppIDStr(), message.Params.GroupID)
}
mylog.Printf("测试1:%v", msgType)
//如果获取不到 就用user_id获取信息类型
if msgType == "" {
msgType = GetMessageTypeByUserid(config.GetAppIDStr(), message.Params.UserID)
}
mylog.Printf("测试2:%v", msgType)
//顺序有讲究
if msgType == "" {
msgType = GetMessageTypeByGroupidV2(message.Params.GroupID)
}
mylog.Printf("测试3:%v", msgType)
//新增 内存获取不到从数据库获取
if msgType == "" {
msgType = GetMessageTypeByUseridV2(message.Params.UserID)
}

mylog.Printf("测试4:%v", msgType)

var idInt64, idInt642 int64
var err error

Expand Down

0 comments on commit 88e408a

Please sign in to comment.