提交 d7941bbd 编写于 作者: Chongwen.jiang's avatar Chongwen.jiang

add apple login interface duration time log print

上级 ee587725
流水线 #22478 已失败 于阶段
in 1 second
...@@ -580,6 +580,7 @@ public class LoginServiceImpl implements LoginService { ...@@ -580,6 +580,7 @@ public class LoginServiceImpl implements LoginService {
@Transactional @Transactional
@Override @Override
public LoginResult loginByApple(BaseRequest request) { public LoginResult loginByApple(BaseRequest request) {
long start = System.currentTimeMillis();
// 入参非空判断 // 入参非空判断
if (StringUtils.isEmpty(request.getIdentifyToken())) { if (StringUtils.isEmpty(request.getIdentifyToken())) {
throw new PicaException(AccountExceptionEnum.PICA_PARAMS_ERROR.getCode(), throw new PicaException(AccountExceptionEnum.PICA_PARAMS_ERROR.getCode(),
...@@ -614,6 +615,8 @@ public class LoginServiceImpl implements LoginService { ...@@ -614,6 +615,8 @@ public class LoginServiceImpl implements LoginService {
result.setEntireFlag(doctor.getEntire_flag()); result.setEntireFlag(doctor.getEntire_flag());
result.setMobile(AESUtil.decryptV0(doctor.getMobile_phone())); result.setMobile(AESUtil.decryptV0(doctor.getMobile_phone()));
} }
long end1 = System.currentTimeMillis();
logger.info("loginByApple1-duration {} millionSeconds", (end1-start));
return result; return result;
} else { } else {
AccountAppleInfo entity = accountAppleInfoMapper.selectByUserId(request.getAppleUserId()); AccountAppleInfo entity = accountAppleInfoMapper.selectByUserId(request.getAppleUserId());
...@@ -624,6 +627,8 @@ public class LoginServiceImpl implements LoginService { ...@@ -624,6 +627,8 @@ public class LoginServiceImpl implements LoginService {
LoginResult result = new LoginResult(); LoginResult result = new LoginResult();
result.setUnionId(request.getAppleUserId()); result.setUnionId(request.getAppleUserId());
result.setBindFlag(AccountTypeEnum.BIND_STATUS_FAILURE.getCode() + ""); result.setBindFlag(AccountTypeEnum.BIND_STATUS_FAILURE.getCode() + "");
long end1 = System.currentTimeMillis();
logger.info("loginByApple2-duration {} millionSeconds", (end1-start));
return result; return result;
} }
} }
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
<!--通过appleUserId获取apple信息--> <!--通过appleUserId获取apple信息-->
<select id="selectByUserId" resultMap="BaseResultMap" parameterType="java.lang.String"> <select id="selectByUserId" resultMap="BaseResultMap" parameterType="java.lang.String">
select select
<include refid="Base_Column_List"/> id
from account_apple_info from account_apple_info
where apple_user_id = #{id} and delete_flag = 1 where apple_user_id = #{id} and delete_flag = 1
limit 1 limit 1
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册