Copy Code code as follows:
/*
$.ajax ({
Url:url,
Type: ' POST ',
Data: {
Corpid:corpid,
Pwd:pwd,
Mobile:mobile,
Content:content,
Cell: ',
Sendtime: '
},
async:true,//Asynchronous
DataType: ' text ',//' text ', ' Jsonp '
Success:function (data, textstatus) {
alert (data);
if (data = = 0) {
Alert ("SMS has been sent successfully, please pay attention to check!");
else if (data = = 1) {
Alert ("Account not registered!");
else if (data = = 2) {
Alert ("Server-side error message: Other errors.");
else if (data = = 3) {
Alert ("Account or password error!");
else if (data = = 4) {
Alert ("Cell phone number is not properly formatted!");
else if (data = = 5) {
Alert ("Insufficient balance, please recharge first!");
else if (data = = 6) {
Alert ("Timed delivery time is not a valid time format!");
else if (data = = 7) {
Alert ("Do not send the same message to the same cell phone number within 10 hours!");
else if (data!= null) {
Alert ("Return code:" + data);
}
},
Error:function (data) {
Alert (' Send SMS: Call SMS interface error, please contact admin! ');
}
});
*/