master
kira 6 years ago
parent 5cfea84117
commit 125e6f9adc

@ -3055,13 +3055,11 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
sendMessageToBD(client, refuse_remark); sendMessageToBD(client, refuse_remark);
if (client.getIntValue("source") == 4) { if (client.getIntValue("source") == 4) {
String contact_phone = client.getString("contact_phone"); String contact_phone = client.getString("contact_phone");
logger.info("testphone-------"+contact_phone);
if (contact_phone.startsWith("+61")) { if (contact_phone.startsWith("+61")) {
ArrayList<String> param = new ArrayList<>(); ArrayList<String> param = new ArrayList<>();
param.add(refuse_remark); param.add(refuse_remark);
try { try {
SmsSender.getSender().sendWithParam("+61", contact_phone.replace("+61", ""), REFUSE_CLIENT_TEMPLID, param, "RoyalPay", "", ""); SmsSender.getSender().sendWithParam("+61", contact_phone.replace("+61", ""), REFUSE_CLIENT_TEMPLID, param, "RoyalPay", "", "");
logger.info("testphone22-------"+contact_phone);
} catch (Exception ignore) { } catch (Exception ignore) {
throw new ServerErrorException("Phone number is wrong :" + contact_phone); throw new ServerErrorException("Phone number is wrong :" + contact_phone);
} }

Loading…
Cancel
Save