From 81d78b51428642c7bd85342bd75e5dd52abca85e Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 2 Nov 2023 13:59:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E4=BF=A1api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sms/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sms/api.go b/sms/api.go index fe74a2a..fb2292a 100644 --- a/sms/api.go +++ b/sms/api.go @@ -47,7 +47,7 @@ func SmsSend(engine *xorm.Engine, args map[string]interface{}) error { if err != nil { return err } - platformCount := gjson.Get(send, "data.smsNum").Int() + platformCount := gjson.Get(send, "smsNum").Int() if int(platformCount) < count*int(contentLen) { return errors.New("平台短信不足") }