Commit da8b0931 authored by scjtqs's avatar scjtqs

默认最小宽高调整到 200*200

parent ca62f6f5
...@@ -450,11 +450,11 @@ func (bot *CQBot) ToElement(t string, d map[string]string, group bool) (message. ...@@ -450,11 +450,11 @@ func (bot *CQBot) ToElement(t string, d map[string]string, group bool) (message.
icon := d["icon"] icon := d["icon"]
minwidth, _ := strconv.ParseInt(d["minwidth"], 10, 64) minwidth, _ := strconv.ParseInt(d["minwidth"], 10, 64)
if minwidth == 0 { if minwidth == 0 {
minwidth = 400 minwidth = 200
} }
minheight, _ := strconv.ParseInt(d["minheight"], 10, 64) minheight, _ := strconv.ParseInt(d["minheight"], 10, 64)
if minheight == 0 { if minheight == 0 {
minheight = 400 minheight = 200
} }
maxwidth, _ := strconv.ParseInt(d["maxwidth"], 10, 64) maxwidth, _ := strconv.ParseInt(d["maxwidth"], 10, 64)
if maxwidth == 0 { if maxwidth == 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment