Jsp的形式对接手机短信,实操
程序员文章站
2022-03-18 18:41:20
function requestAlarmLiu() { $.post("alarm/getPersonAlarmList", {disposeStatus: 'NOT'}, function (data) { var sosCount = 0; var healthCount = 0; for ( ......
function requestAlarmLiu() {
$.post("alarm/getPersonAlarmList", {disposeStatus: 'NOT'}, function (data) {
var sosCount = 0;
var healthCount = 0;
for (var i in data.rows) {
//账号
var account = '短信平台账号';
//密码
var pswd = '平台密码';
// 修改为您要发送的手机号码
//var mobile = data.rows[i].exigencyPhone;
//验证码内容
var msg ="【XX科技】您的验证码是:1234";
//发送验证码
$.ajax({
url: "向平台咨询URL地址",
type: "GET",
data: { account: account, pswd: pswd, mobile: mobile, msg: msg, needstatus: "true", product: "" },
dataType: "JSONP",
success: function (data) {
},
error: function (data) {
}
});
}
});
}
上一篇: ps怎么设计战地3的海报风格?
下一篇: 全球各个最优秀的产品都有哪些设计原则?