From 12576ed40117cf22e416f3cd92ce2e39b9baa884 Mon Sep 17 00:00:00 2001 From: Yiwen-Chan Date: Fri, 19 Mar 2021 23:09:06 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=8F=91?= =?UTF-8?q?=E5=87=BA=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setutime/setu_geter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setutime/setu_geter.go b/setutime/setu_geter.go index e5a8da05..7f70be87 100644 --- a/setutime/setu_geter.go +++ b/setutime/setu_geter.go @@ -103,7 +103,6 @@ func init() { // 插件主体 type_ = ctx.State["regex_matched"].([]string)[1] id = utils.Str2Int(ctx.State["regex_matched"].([]string)[2]) illust = &utils.Illust{} - file = fmt.Sprintf("%s%d.jpg", PoolsCache.Path, illust.Pid) ) ctx.Send("少女祈祷中......") // TODO 查询P站插图信息 @@ -117,6 +116,7 @@ func init() { // 插件主体 ctx.Send(fmt.Sprintf("ERROR: %v", err)) return } + file := fmt.Sprintf("%s%d.jpg", PoolsCache.Path, illust.Pid) if id := ctx.Send(illust.DetailPic(file)); id == 0 { ctx.Send(fmt.Sprintf("ERROR: %v", "可能被风控,发送失败")) return