From 7129997cbdfca5580f1776dbf21f49f5ac9ff699 Mon Sep 17 00:00:00 2001 From: lianhong2758 <2758988938@qq.com> Date: Fri, 4 Nov 2022 20:57:11 +0800 Subject: [PATCH] =?UTF-8?q?Update=20and=20rename=20plugin/jiami/jiami.go?= =?UTF-8?q?=20to=20.plugin/=E4=BD=B3=E7=BE=8E/jiami.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\263\347\276\216/jiami.go" | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) rename plugin/jiami/jiami.go => ".plugin/\344\275\263\347\276\216/jiami.go" (94%) diff --git a/plugin/jiami/jiami.go "b/.plugin/\344\275\263\347\276\216/jiami.go" similarity index 94% rename from plugin/jiami/jiami.go rename to ".plugin/\344\275\263\347\276\216/jiami.go" index 56ff366da6..9d5d32fb6c 100644 --- a/plugin/jiami/jiami.go +++ "b/.plugin/\344\275\263\347\276\216/jiami.go" @@ -39,6 +39,7 @@ func init() { // 主函数 es, err := web.GetData(fmt.Sprintf(jiami1, str)) // 将网站返回结果赋值 if err != nil { ctx.SendChain(message.Text("出现错误捏:", err)) + return } // es1 := fmt.Sprintf("%s", es) @@ -46,14 +47,8 @@ func init() { // 主函数 err = json.Unmarshal(es, &r) // 填api返回结果,struct地址 if err != nil { ctx.SendChain(message.Text("出现错误捏:", err)) + return } - - /*if es != "" { - ctx.SendChain(message.Text(es)) - } else { - ctx.SendChain(message.Text("加密失败!")) - }*/ - ctx.SendChain(message.Text(r.Data.Message)) // 输出提取后的结果 }) @@ -64,6 +59,7 @@ func init() { // 主函数 es, err := web.GetData(fmt.Sprintf(jiami2, str)) // 将网站返回结果赋值 if err != nil { ctx.SendChain(message.Text("出现错误捏:", err)) + return } var n nmd // r数组 err = json.Unmarshal(es, &n) // 填api返回结果,struct地址