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

云片短信参数缺失 #73

Open
mayonghao06 opened this issue Nov 28, 2024 · 3 comments
Open

云片短信参数缺失 #73

mayonghao06 opened this issue Nov 28, 2024 · 3 comments

Comments

@mayonghao06
Copy link

你好,请问为什么云片短信测试请求参数缺失
云片短信参数缺失

@ZhongFuCheng3y
Copy link
Owner

如果短信模板是有变量的,比如验证码短信。测试的内容应该是 #code#{:}1234,#code# 指的是模板的变量,{:} 是分隔符,1234就是具体的参数值。

@ZhongFuCheng3y
Copy link
Owner

如果短信模板是有变量的,比如验证码短信。测试的内容应该是 #code#{:}1234,#code# 指的是模板的变量,{:} 是分隔符,1234就是具体的参数值。

参考文档:https://www.yunpian.com/official/document/sms/zh_cn/domestic_tpl_single_send
以及代码的实现:com.java3y.austin.handler.script.impl.YunPianSmsScript#getTplValue

@mayonghao06
Copy link
Author

如果短信模板是有变量的,比如验证码短信。测试的内容应该是#code#{:}1234,#code#指的是模板的变量,{:}是分隔符,1234就是具体的参数值。

我的短信模板是通知祝福类的,没有参数诶;如果有参数的话,这里的测试内容是指发送的内容吗?还是我的创建发送模板时少了些参数呀?

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

2 participants