记得上下班打卡 | git大法好,push需谨慎

Commit 8f128d24 authored by 张国柄's avatar 张国柄

~api:用户注册:手机号识别不出地址:SQL入库`adam_user_mobile_locate.add`;

parent ab6e19b4
...@@ -80,9 +80,9 @@ public class AdamUserServiceImpl implements IAdamUserService { ...@@ -80,9 +80,9 @@ public class AdamUserServiceImpl implements IAdamUserService {
String[] mobileLocateArr = adamRdmService.getMobileLocateArr(mobile); String[] mobileLocateArr = adamRdmService.getMobileLocateArr(mobile);
toMqSqls.add(SqlMapping.get("adam_user_mobile_locate.add")); toMqSqls.add(SqlMapping.get("adam_user_mobile_locate.add"));
if (null != mobileLocateArr && mobileLocateArr.length > 0) {
String cliIpAddr = CurrentUtil.getCliIpAddr(); String cliIpAddr = CurrentUtil.getCliIpAddr();
String headerCliSource = CurrentUtil.getHeaderCliSource(); String headerCliSource = CurrentUtil.getHeaderCliSource();
if (null != mobileLocateArr && mobileLocateArr.length > 0) {
initUserMobileLocateObjs.add(new Object[]{ initUserMobileLocateObjs.add(new Object[]{
userInfoVo.getUid(), mobile, 1, userInfoVo.getUid(), mobile, 1,
mobileLocateArr[0], mobileLocateArr[1], mobileLocateArr[2], mobileLocateArr[3], mobileLocateArr[4], mobileLocateArr[0], mobileLocateArr[1], mobileLocateArr[2], mobileLocateArr[3], mobileLocateArr[4],
...@@ -90,6 +90,12 @@ public class AdamUserServiceImpl implements IAdamUserService { ...@@ -90,6 +90,12 @@ public class AdamUserServiceImpl implements IAdamUserService {
}); });
userInfoVo.setProvince(mobileLocateArr[0]); userInfoVo.setProvince(mobileLocateArr[0]);
userInfoVo.setCity(mobileLocateArr[1]); userInfoVo.setCity(mobileLocateArr[1]);
} else {
initUserMobileLocateObjs.add(new Object[]{
userInfoVo.getUid(), mobile, 1,
null, null, null, null, null,
mobile, cliIpAddr, headerCliSource, now, cliIpAddr, headerCliSource, now, now
});
} }
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
...@@ -139,9 +145,9 @@ public class AdamUserServiceImpl implements IAdamUserService { ...@@ -139,9 +145,9 @@ public class AdamUserServiceImpl implements IAdamUserService {
String[] mobileLocateArr = adamRdmService.getMobileLocateArr(param.getMobile()); String[] mobileLocateArr = adamRdmService.getMobileLocateArr(param.getMobile());
toMqSqls.add(SqlMapping.get("adam_user_mobile_locate.add")); toMqSqls.add(SqlMapping.get("adam_user_mobile_locate.add"));
if (null != mobileLocateArr && mobileLocateArr.length > 0) {
String cliIpAddr = CurrentUtil.getCliIpAddr(); String cliIpAddr = CurrentUtil.getCliIpAddr();
String headerCliSource = CurrentUtil.getHeaderCliSource(); String headerCliSource = CurrentUtil.getHeaderCliSource();
if (null != mobileLocateArr && mobileLocateArr.length > 0) {
initUserMobileLocateObjs.add(new Object[]{ initUserMobileLocateObjs.add(new Object[]{
registerUid, userInfoVo.getMobile(), 1, registerUid, userInfoVo.getMobile(), 1,
mobileLocateArr[0], mobileLocateArr[1], mobileLocateArr[2], mobileLocateArr[3], mobileLocateArr[4], mobileLocateArr[0], mobileLocateArr[1], mobileLocateArr[2], mobileLocateArr[3], mobileLocateArr[4],
...@@ -149,6 +155,12 @@ public class AdamUserServiceImpl implements IAdamUserService { ...@@ -149,6 +155,12 @@ public class AdamUserServiceImpl implements IAdamUserService {
}); });
userInfoVo.setProvince(mobileLocateArr[0]); userInfoVo.setProvince(mobileLocateArr[0]);
userInfoVo.setCity(mobileLocateArr[1]); userInfoVo.setCity(mobileLocateArr[1]);
} else {
initUserMobileLocateObjs.add(new Object[]{
registerUid, userInfoVo.getMobile(), 1,
null, null, null, null, null,
userInfoVo.getMobile(), cliIpAddr, headerCliSource, now, cliIpAddr, headerCliSource, now, now
});
} }
adamRdmService.setUserInfoVoByUid(registerUid, userInfoVo); adamRdmService.setUserInfoVoByUid(registerUid, userInfoVo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment