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) {
}
});
}
});
}
转载于:https://www.cnblogs.com/AJin0802/p/8567639.html