Appearance
启用短信次数限制
方法名
setSMSLimitation
用法
- 用法如下:js
module.setSMSLimitation({ params: { isOutgoing: true, dateType:1, limitNumber:10 }, complete: (res) => { console.log(res) } })jsmodule.setSMSLimitation({ params: { isOutgoing: true, dateType:1, limitNumber:10 }, complete: (res : LevenResult) => { console.log(res) } } as LevenOptions) - 参数说明
参数名 参数类型 是否必填 默认值 参数描述 params Object 是 无 接口请求参数 params.isOutgoing Boolean 是 无 true:设置发送短信, false:设置接收短信 params.dateType Integer 是 无 1:天2:周3:月params.limitNumber Integer 是 无 设置的短信发送/接收最大限制量 success Function 否 无 执行成功的函数 fail Function 否 无 执行失败的函数 complete Function 否 无 执行完成的函数,不管成功还是失败都会执行
回调
- 示例json
{ "data": { "result":true }, "message": "", "code": 0 } - 回调说明:
参数名 参数类型 参数描述 message String 消息提示 data Object 数据对象 data.result Boolean true:配置成功,false:配置失败 code Integer 返回类型,0.成功,其他:失败

