From 29e9a508a03c313a98142f801368d599490a6056 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 2 Nov 2023 13:51:15 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sms/api.go b/sms/api.go index d4589cd..96199f6 100644 --- a/sms/api.go +++ b/sms/api.go @@ -47,8 +47,8 @@ func SmsSend(engine *xorm.Engine, args map[string]interface{}) error { if err != nil { return err } - platformCount := gjson.Get(send, "data.smsNum").String() - if zhios_third_party_utils.StrToInt(platformCount) < count*int(contentLen) { + platformCount := gjson.Get(send, "data.smsNum").Int() + if platformCount < count*int(contentLen) { return errors.New("平台短信不足") } }