linhw 2024-09-03 14:25:56 +08:00
parent 436a7c7601
commit a5bdf6d523
2 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ public class PhoneCodeController {
// if (appRegister != null && appRegister.getStatus() == 2) {
// return AjaxResult.error(201, "您的账号申请被驳回,驳回原因: " + appRegister.getRemark());
// }
System.out.println("-----------------------------------" + phoneNum);
if (phoneNum.indexOf("+") != -1) {
String redisKey = phoneNum.substring(phoneNum.indexOf("+") + 1,phoneNum.length());
redisService.setCacheObject(redisKey,phoneNum);

View File

@ -238,7 +238,7 @@ public class SendNoteUtil {
}
public static void main(String[] args) {
String phone = "1+4696089013";
String phone = "852+69030916";
if (!isChineseMobileNumber(phone)) {
phone = phone.replace("+","");
System.out.println(sendMessageForeign(phone,Integer.valueOf(phone.substring(0,1))));