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("平台短信不足") } }