From 3977adcca8fed00a6128c4847ae4f9ea5546fc1f Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 2 Nov 2023 13:54:21 +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 96199f6..fe74a2a 100644 --- a/sms/api.go +++ b/sms/api.go @@ -48,7 +48,7 @@ func SmsSend(engine *xorm.Engine, args map[string]interface{}) error { return err } platformCount := gjson.Get(send, "data.smsNum").Int() - if platformCount < count*int(contentLen) { + if int(platformCount) < count*int(contentLen) { return errors.New("平台短信不足") } }