Skip to content

短信补充的模型字段不够 #31

@yinanrong

Description

@yinanrong

sdk里边的模型如下:

  public class SmsMessage
  {
    [JsonProperty("delay_time")]
    public int DelayTime { get; set; }

    [JsonProperty("temp_id")]
    public long TempId { get; set; }

    [JsonProperty("temp_para", NullValueHandling = NullValueHandling.Ignore)]
    public Dictionary<string, object> TempPara { get; set; }
  }

但是api要求有这些参数

关键字 类型 选项 说明
delay_time int 必填 单位为秒,不能超过 24 小时。设置为 0,表示立即发送短信。该参数仅对 android 和 iOS 平台有效,Winphone 平台则会立即发送短信。
signid int 选填 签名ID,该字段为空则使用应用默认签名。
temp_id long 必填 短信补充的内容模板 ID。没有填写该字段即表示不使用短信补充功能。
temp_para JSON 可选 短信模板中的参数。
active_filter boolean 可选 active_filter 字段用来控制是否对补发短信的用户进行活跃过滤,默认为 true ,做活跃过滤;为 false,则不做活跃过滤;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions