修改回复
This commit is contained in:
parent
070738fd9d
commit
b031ee4270
1 changed files with 2 additions and 2 deletions
|
@ -48,12 +48,12 @@ func (a *Hhsh) GetMsg() string {
|
||||||
if trans, ok := resultSlipe[0].(map[string]interface{})["trans"]; ok {
|
if trans, ok := resultSlipe[0].(map[string]interface{})["trans"]; ok {
|
||||||
// println("trans:", trans.([]interface{}))
|
// println("trans:", trans.([]interface{}))
|
||||||
transSlice := trans.([]interface{})
|
transSlice := trans.([]interface{})
|
||||||
msg := "[CQ:reply,id=" + a.MID + "]("
|
msg := "[CQ:reply,id=" + a.MID + "]"
|
||||||
for _, item := range transSlice {
|
for _, item := range transSlice {
|
||||||
// fmt.Print(item, " ")
|
// fmt.Print(item, " ")
|
||||||
msg += item.(string) + " "
|
msg += item.(string) + " "
|
||||||
}
|
}
|
||||||
return msg + ")"
|
return msg
|
||||||
}
|
}
|
||||||
// return string(resultSlipe[0].([]byte))
|
// return string(resultSlipe[0].([]byte))
|
||||||
return "未找到关于" + resultSlipe[0].(map[string]interface{})["trans"].([]interface{})[0].(string) + "的释义"
|
return "未找到关于" + resultSlipe[0].(map[string]interface{})["trans"].([]interface{})[0].(string) + "的释义"
|
||||||
|
|
Loading…
Reference in a new issue