Browse Source

短信api

master
huangjiajun 1 year ago
parent
commit
29e9a508a0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      sms/api.go

+ 2
- 2
sms/api.go View File

@@ -47,8 +47,8 @@ func SmsSend(engine *xorm.Engine, args map[string]interface{}) error {
if err != nil { if err != nil {
return err 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("平台短信不足") return errors.New("平台短信不足")
} }
} }


Loading…
Cancel
Save