接口 SMSListener


public interface SMSListener
  • 方法详细资料

    • before

      boolean before(String instance, String sign, String template, String extend, String out, String mobile, Map<String,String> params)
      发送短信
      参数:
      instance - 实例KEY
      sign - 签名(如果不指定则使用配置文件中默认签名)
      template - 模板code(SMS_88550009,注意不要写成工单号)
      extend - 上行短信扩展码。上行短信指发送给通信服务提供商的短信,用于定制某种服务、完成查询,或是办理某种业务等,需要收费,按运营商普通短信资费进行扣费。
      out - 外部流水扩展字段。
      mobile - 手机号,多个以逗号分隔
      params - 参数
      返回:
      boolean 是否继续发送
    • after

      boolean after(SMSResult result, String instance, String sign, String template, String extend, String out, String mobile, Map<String,String> params)