Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yinanrong opened this issue Oct 25, 2019 · 0 comments
Open

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

yinanrong opened this issue Oct 25, 2019 · 0 comments

Comments

@yinanrong
Copy link

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,则不做活跃过滤;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant