|
|
@ -2231,7 +2231,7 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
String nationCode = phone.getString("nation_code").contains("+") ? phone.getString("nation_code").substring(1) : phone.getString("nation_code");
|
|
|
|
String nationCode = phone.getString("nation_code").contains("+") ? phone.getString("nation_code").substring(1) : phone.getString("nation_code");
|
|
|
|
String phoneNumber = phone.getString("contact_phone");
|
|
|
|
String phoneNumber = phone.getString("contact_phone");
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
smsSender.sendAuthCodeMessage(nationCode.trim(), phoneNumber, Locale.ENGLISH, new AuthCodeMessage("绑定手机号", codeKeyValue, 1));
|
|
|
|
smsSender.sendAuthCodeMessage(nationCode.trim(), phoneNumber, Locale.ENGLISH, new AuthCodeMessage("Binding mobile number", codeKeyValue, 1));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
logger.error(e.getMessage(), e);
|
|
|
|
logger.error(e.getMessage(), e);
|
|
|
|
throw new BadRequestException("Phone number is wrong.Please try again.");
|
|
|
|
throw new BadRequestException("Phone number is wrong.Please try again.");
|
|
|
@ -2251,7 +2251,7 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
String nationCode = client.getString("nation_code").contains("+") ? client.getString("nation_code").substring(1) : client.getString("nation_code");
|
|
|
|
String nationCode = client.getString("nation_code").contains("+") ? client.getString("nation_code").substring(1) : client.getString("nation_code");
|
|
|
|
String phoneNumber = client.getString("contact_phone");
|
|
|
|
String phoneNumber = client.getString("contact_phone");
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
smsSender.sendAuthCodeMessage(nationCode.trim(), phoneNumber, Locale.ENGLISH, new AuthCodeMessage("解綁绑定手机号", codeKeyValue, 1));
|
|
|
|
smsSender.sendAuthCodeMessage(nationCode.trim(), phoneNumber, Locale.ENGLISH, new AuthCodeMessage("Unbind mobile number", codeKeyValue, 1));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
logger.error(e.getMessage(), e);
|
|
|
|
logger.error(e.getMessage(), e);
|
|
|
|
throw new BadRequestException("Phone number is wrong.Please try again.");
|
|
|
|
throw new BadRequestException("Phone number is wrong.Please try again.");
|
|
|
|