|
@@ -78,7 +78,7 @@ public class RshyJkManagerImpl implements RshyJkManager {
|
|
|
public Future<RshyVo> getRshyInfo(RshyParam rshyParam) {
|
|
|
// timeout 转成毫秒 这里考虑到网络传输延时等原因,减去300ms
|
|
|
rshyParam.setTimeout((int) TimeUnit.MILLISECONDS.convert(rshyParam.getTimeout(), TimeUnit.SECONDS));
|
|
|
- int jkmTimeout = rshyParam.getTimeout() - 300;
|
|
|
+ int jkmTimeout = rshyParam.getTimeout() - 500;
|
|
|
RshyVo rshyVo = new RshyVo();
|
|
|
PctgkryDTO gkryDTO = new PctgkryDTO();
|
|
|
ResultDTO resultDTO = new ResultDTO();
|
|
@@ -113,6 +113,8 @@ public class RshyJkManagerImpl implements RshyJkManager {
|
|
|
if (rshyParam.getIdentity() != null) {
|
|
|
rshyVo.setXm(rshyParam.getIdentity().getName());
|
|
|
rshyVo.setPhone(rshyParam.getIdentity().getPhone());
|
|
|
+ rshyVo.setAddress(rshyParam.getIdentity().getAddress());
|
|
|
+ rshyVo.setPhoto(rshyParam.getIdentity().getPhoto());
|
|
|
} else {
|
|
|
saveBarcode2DB(StrUtil.EMPTY, rshyParam.getSfzh());
|
|
|
}
|
|
@@ -120,7 +122,7 @@ public class RshyJkManagerImpl implements RshyJkManager {
|
|
|
int jkmUsedTime = (int) DateUtil.between(beginDate, DateTime.now(), DateUnit.MS);
|
|
|
System.out.println("健康码接口用时: " + jkmUsedTime + "毫秒");
|
|
|
|
|
|
- rshyParam.setTimeout(rshyParam.getTimeout() - jkmUsedTime - 400);
|
|
|
+ rshyParam.setTimeout(rshyParam.getTimeout() - jkmUsedTime - 600);
|
|
|
//剩余时间不到50ms,直接返回
|
|
|
if (rshyParam.getTimeout() <= 50) {
|
|
|
return new AsyncResult<>(rshyVo);
|
|
@@ -142,6 +144,7 @@ public class RshyJkManagerImpl implements RshyJkManager {
|
|
|
add(() -> resultDTO.setPctzjzpResultDTO(itfwServer.getPctzjzp(rshyParam.getSfzh(), rshyParam.getTimeout())));
|
|
|
} else {
|
|
|
add(() -> itfwServer.savePhoto2DB(rshyParam.getSfzh(), rshyParam.getPhoto()));
|
|
|
+ rshyVo.setPhoto(null);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
@@ -321,6 +324,7 @@ public class RshyJkManagerImpl implements RshyJkManager {
|
|
|
identity.setName(rshyVo.getXm());
|
|
|
identity.setAddress(rshyVo.getAddress());
|
|
|
identity.setPhone(rshyVo.getPhone());
|
|
|
+ //identity.setPhoto(rshyVo.getPhoto());
|
|
|
identityService.saveOK(identity);
|
|
|
}
|
|
|
|