提交 33f069bb 编写于 作者: pengcheng.zhou's avatar pengcheng.zhou

一键登录接口自测完成

上级 f0f457ec
...@@ -31,6 +31,7 @@ import com.pica.cloud.foundation.entity.PicaResponse; ...@@ -31,6 +31,7 @@ import com.pica.cloud.foundation.entity.PicaResponse;
import com.pica.cloud.foundation.entity.PicaResultCode; import com.pica.cloud.foundation.entity.PicaResultCode;
import com.pica.cloud.foundation.entity.PicaWarnException; import com.pica.cloud.foundation.entity.PicaWarnException;
import com.pica.cloud.foundation.message.client.EquipmentService; import com.pica.cloud.foundation.message.client.EquipmentService;
import com.pica.cloud.foundation.message.common.req.DeviceReq;
import com.pica.cloud.foundation.redis.ICacheClient; import com.pica.cloud.foundation.redis.ICacheClient;
import com.pica.cloud.foundation.utils.utils.ValidateUtils; import com.pica.cloud.foundation.utils.utils.ValidateUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
...@@ -111,10 +112,6 @@ public class LoginV1ServiceImpl implements LoginV1Service { ...@@ -111,10 +112,6 @@ public class LoginV1ServiceImpl implements LoginV1Service {
baseRequest.setLoginIp(req.getLoginIp()); baseRequest.setLoginIp(req.getLoginIp());
baseRequest.setUserTokenTourist(req.getUserTokenTourist()); baseRequest.setUserTokenTourist(req.getUserTokenTourist());
System.out.println(JSONObject.toJSONString(baseRequest));
System.out.println(JSONObject.toJSONString(queryMobileEntity));
System.out.println(JSONObject.toJSONString(accountInfoEntity));
LoginResult result; LoginResult result;
if (accountInfoEntity == null) { if (accountInfoEntity == null) {
//说明是注册功能 //说明是注册功能
...@@ -181,6 +178,9 @@ public class LoginV1ServiceImpl implements LoginV1Service { ...@@ -181,6 +178,9 @@ public class LoginV1ServiceImpl implements LoginV1Service {
if (doctor != null) { if (doctor != null) {
lastMobilePhone = doctor.getMobile_phone(); lastMobilePhone = doctor.getMobile_phone();
} }
// 加密当前手机号
currMobilePhone = EncryptUtils.encryptContent(currMobilePhone, EncryptConstants.ENCRYPT_TYPE_MOBILE);
LogOneChlickCheck logOneChlickCheck = new LogOneChlickCheck(); LogOneChlickCheck logOneChlickCheck = new LogOneChlickCheck();
logOneChlickCheck.setCreatedId(99999999); logOneChlickCheck.setCreatedId(99999999);
logOneChlickCheck.setModifiedId(99999999); logOneChlickCheck.setModifiedId(99999999);
...@@ -199,7 +199,9 @@ public class LoginV1ServiceImpl implements LoginV1Service { ...@@ -199,7 +199,9 @@ public class LoginV1ServiceImpl implements LoginV1Service {
private Integer getUserId(String deviceToken) { private Integer getUserId(String deviceToken) {
Integer userId = null; Integer userId = null;
try { try {
PicaResponse<Integer> response = equipmentService.getUserIdByDeviceToken(deviceToken); DeviceReq req = new DeviceReq();
req.setDeviceToken(deviceToken);
PicaResponse<Integer> response= equipmentService.getUserIdByDeviceToken(req);
userId = response.getData(); userId = response.getData();
} catch (Exception e) { } catch (Exception e) {
// 防止message服务出问题影响一键登录流程 // 防止message服务出问题影响一键登录流程
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册