mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
parent
a9dfbdb54b
commit
e62c86a740
@ -77,7 +77,8 @@ func init() {
|
||||
}
|
||||
|
||||
var d dish
|
||||
if err := db.Find("dish", &d, fmt.Sprintf("WHERE name like %%%s%%", dishName)); err != nil {
|
||||
if err := db.Find("dish", &d, fmt.Sprintf("WHERE name like '%%%s%%'", dishName)); err != nil {
|
||||
ctx.SendChain(message.Text("客官,本店没有" + dishName))
|
||||
return
|
||||
}
|
||||
|
||||
@ -86,7 +87,7 @@ func init() {
|
||||
"原材料:%s\n"+
|
||||
"步骤:\n"+
|
||||
"%s",
|
||||
name, dishName, d.Materials, d.Steps),
|
||||
name, d.Name, d.Materials, d.Steps),
|
||||
))
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user