Copy codeThe Code is 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 ("the SMS has been sent successfully. Please check it! ");
} Else if (data =-1 ){
Alert ("account not registered! ");
} Else if (data =-2 ){
Alert ("server error message: other errors .");
} Else if (data =-3 ){
Alert ("incorrect account or password! ");
} Else if (data =-4 ){
Alert ("Incorrect mobile phone number format! ");
} Else if (data =-5 ){
Alert ("insufficient balance, please recharge first! ");
} Else if (data =-6 ){
Alert ("the scheduled sending time is not a valid time format! ");
} Else if (data =-7 ){
Alert ("cannot send the same text message to the same mobile phone number within 10 hours! ");
} Else if (data! = Null ){
Alert ("return code:" + data );
}
},
Error: function (data ){
Alert ('send SMS: An error occurred while calling the SMS interface. Please contact the Administrator in time! ');
}
});
*/