|
|
@@ -188,7 +188,8 @@ public class Yes24Login {
|
|
|
String snsId = nodeMap.getString("str_MEM_ID");
|
|
|
String custNm = nodeMap.getString("str_MEM_NM");
|
|
|
String email = nodeMap.getString("str_MEM_EML");
|
|
|
- String cellphnno = nodeMap.getString("str_ADDR_MOB_NO");
|
|
|
+ String telNo = nodeMap.getString("str_ADDR_TEL_NO"); // YES24 회원정보가 - 필수전화
|
|
|
+ String mobNo = nodeMap.getString("str_ADDR_MOB_NO"); // YES24 회원정보가 - 휴대전화
|
|
|
String birthYmd = nodeMap.getString("str_BIRTH_DM").replaceAll("-","");
|
|
|
String sexGb = nodeMap.getString("str_SEX").equals("M")? TscConstants.Gender.MALE.value() : TscConstants.Gender.FEMALE.value();
|
|
|
String ci = nodeMap.getString("str_IPIN_CI");
|
|
|
@@ -196,6 +197,8 @@ public class Yes24Login {
|
|
|
String homeBaseAddr = nodeMap.getString("str_ADDR_ADDR1");
|
|
|
String homeDtlAddr = nodeMap.getString("str_ADDR_ADDR2");
|
|
|
|
|
|
+ String cellphnno = getValidationCellphone(telNo,mobNo);
|
|
|
+
|
|
|
resultMap.setString("memNo", memNo);
|
|
|
resultMap.setString("snsId", snsId);
|
|
|
resultMap.setString("custNm", custNm);
|
|
|
@@ -291,6 +294,17 @@ public class Yes24Login {
|
|
|
log.error(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private String getValidationCellphone (String telNo, String mobNo) {
|
|
|
+ String result = "";
|
|
|
+ String regExp = "^01(?:0|1|[6-9])[.-]?(\\d{3}|\\d{4})[.-]?(\\d{4})$";
|
|
|
+ if(telNo.matches(regExp)) {
|
|
|
+ return telNo;
|
|
|
+ } else if(mobNo.matches(regExp)) {
|
|
|
+ return mobNo;
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|