Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta125 #296

Merged
merged 6 commits into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading