|
|
@ -49,10 +49,14 @@ public class QServlet extends HttpServlet { |
|
|
|
|
|
|
|
|
|
|
|
String patientId = request.getParameter("p"); |
|
|
|
String patientId = request.getParameter("p"); |
|
|
|
log.info("{} [patientId={}]多张处方扫码请求,开始解析...", merchantEnum.NAME, patientId); |
|
|
|
log.info("{} [patientId={}]多张处方扫码请求,开始解析...", merchantEnum.NAME, patientId); |
|
|
|
if (StringUtils.isEmpty(patientId)) { |
|
|
|
if (StringUtils.isEmpty(patientId)&&StringUtils.isEmpty(request.getParameter("t"))) { |
|
|
|
log.info("[支付] 多张扫码请求 patientId is null"); |
|
|
|
log.info("[支付] 多张扫码请求 patientId is null and idCardNo is null"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 体检缴费,patientId赋值为0
|
|
|
|
|
|
|
|
if(!StringUtils.isEmpty(request.getParameter("t"))&&StringUtils.isEmpty(patientId)){ |
|
|
|
|
|
|
|
patientId = "0"; //patientId 赋值0
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (MerchantEnum.WX.equals(merchantEnum)) { |
|
|
|
if (MerchantEnum.WX.equals(merchantEnum)) { |
|
|
|
response.sendRedirect(WeChatConfig.getWebUrl() + "pay-qr-recipe.html?p=" + patientId + "&enp=" + ReqParamHelper.encode(patientId)+ "&ent=" + request.getParameter("t")); |
|
|
|
response.sendRedirect(WeChatConfig.getWebUrl() + "pay-qr-recipe.html?p=" + patientId + "&enp=" + ReqParamHelper.encode(patientId)+ "&ent=" + request.getParameter("t")); |
|
|
|