Skip to content

Commit

Permalink
Merge pull request #88 from Leizhenpeng/fix_pic_resolution
Browse files Browse the repository at this point in the history
fix: invalid picture resolution setting
  • Loading branch information
Leizhenpeng authored Mar 12, 2023
2 parents 9875b6e + 8781eaf commit 7860112
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions code/handlers/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ func (m MessageHandler) cardHandler(_ context.Context,
return nil, nil
}
if cardMsg.Kind == PicResolutionKind {
//todo: 暂时不允许 以图搜图 模式下的 再来一张
//CommonProcessPicResolution(cardMsg, cardAction, m.sessionCache)
CommonProcessPicResolution(cardMsg, cardAction, m.sessionCache)
return nil, nil
}
if cardMsg.Kind == PicTextMoreKind {
go func() {
m.CommonProcessPicMore(cardMsg)
}()
}
if cardMsg.Kind == PicVarMoreKind {
go func() {
m.CommonProcessPicMore(cardMsg)
}()
}
//if cardMsg.Kind == PicVarMoreKind {
// //todo: 暂时不允许 以图搜图 模式下的 再来一张
// go func() {
// m.CommonProcessPicMore(cardMsg)
// }()
//}
if cardMsg.Kind == PicModeChangeKind {
newCard, err, done := CommonProcessPicModeChange(cardMsg, m.sessionCache)
if done {
Expand Down

0 comments on commit 7860112

Please sign in to comment.