From e6a67581d7b41fe39da7218a407d7217f6bb29aa Mon Sep 17 00:00:00 2001 From: liyp Date: Sun, 14 Apr 2024 22:25:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96hhsh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workers/hhsh.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] + " 的释义" }