diff --git a/workers/hhsh.go b/workers/hhsh.go index 4efd139..f420cea 100644 --- a/workers/hhsh.go +++ b/workers/hhsh.go @@ -44,7 +44,7 @@ func (a *Hhsh) GetMsg() string { return err.Error() } resultSlipe := data["data"].([]interface{}) - // fmt.Println("resultSlipe:", resultSlipe) + fmt.Println("resultSlipe:", resultSlipe) if trans, ok := resultSlipe[0].(map[string]interface{})["trans"]; ok { // println("trans:", trans.([]interface{})) transSlice := trans.([]interface{}) @@ -56,5 +56,5 @@ func (a *Hhsh) GetMsg() string { return msg } // return string(resultSlipe[0].([]byte)) - return "未找到关于" + resultSlipe[0].(map[string]interface{})["trans"].([]interface{})[0].(string) + "的释义" + return "未找到关于 " + parms[1] + " 的释义" }