Skip to content

Commit 7860112

Browse files
authored
Merge pull request #88 from Leizhenpeng/fix_pic_resolution
fix: invalid picture resolution setting
2 parents 9875b6e + 8781eaf commit 7860112

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

code/handlers/handler.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ func (m MessageHandler) cardHandler(_ context.Context,
4646
return nil, nil
4747
}
4848
if cardMsg.Kind == PicResolutionKind {
49-
//todo: 暂时不允许 以图搜图 模式下的 再来一张
50-
//CommonProcessPicResolution(cardMsg, cardAction, m.sessionCache)
49+
CommonProcessPicResolution(cardMsg, cardAction, m.sessionCache)
5150
return nil, nil
5251
}
5352
if cardMsg.Kind == PicTextMoreKind {
5453
go func() {
5554
m.CommonProcessPicMore(cardMsg)
5655
}()
5756
}
58-
if cardMsg.Kind == PicVarMoreKind {
59-
go func() {
60-
m.CommonProcessPicMore(cardMsg)
61-
}()
62-
}
57+
//if cardMsg.Kind == PicVarMoreKind {
58+
// //todo: 暂时不允许 以图搜图 模式下的 再来一张
59+
// go func() {
60+
// m.CommonProcessPicMore(cardMsg)
61+
// }()
62+
//}
6363
if cardMsg.Kind == PicModeChangeKind {
6464
newCard, err, done := CommonProcessPicModeChange(cardMsg, m.sessionCache)
6565
if done {

0 commit comments

Comments
 (0)