This commit is contained in:
cdle
2021-09-18 17:01:12 +08:00
parent 8eccb967f5
commit 7ed6deea55
+2 -2
View File
@@ -140,10 +140,10 @@ func (sender *Sender) Reply(msgs ...interface{}) error {
for _, item := range msgs { for _, item := range msgs {
switch item.(type) { switch item.(type) {
case core.Edit: case core.Edit:
v := msgs[2].(core.Edit) v := item.(core.Edit)
edit = &v edit = &v
case time.Duration: case time.Duration:
du := msgs[1].(time.Duration) du := item.(time.Duration)
sender.Duration = &du sender.Duration = &du
} }
} }