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

Commit 08a28530 authored by 胡佳晨's avatar 胡佳晨

Merge branch 'dev' into test

parents afadb973 65b5b3a1
......@@ -314,12 +314,12 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
return resultData;
}
} catch (Exception e) {
if (isDownGeneral) {
currentTime = System.currentTimeMillis();
dataUtils.changeSurplusGeneral(payOrderParam.getTicketId(), payOrderParam.getNumber());
currentTime = System.currentTimeMillis() - currentTime;
log.debug("redis 修改库存 异常 -> time:" + (currentTime) + "毫秒");
}
// if (isDownGeneral) {
// currentTime = System.currentTimeMillis();
// dataUtils.changeSurplusGeneral(payOrderParam.getTicketId(), payOrderParam.getNumber());
// currentTime = System.currentTimeMillis() - currentTime;
// log.debug("redis 修改库存 异常 -> time:" + (currentTime) + "毫秒");
// }
e.printStackTrace();
log.error("Kylin Order Pay Error = " + e.getMessage());
// redisLockUtil.unlock(lock);
......@@ -328,6 +328,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
}
private ResponseDto<PayResultVo> order(PayOrderParam payOrderParam, String uid, boolean isMember, int isTrueName, KylinPerformanceVo performanceData, KylinTicketVo ticketData, List<AdamEntersVo> entersVoList, Integer isStudent, KylinTicketTimesVo ticketTimesData, Long currentTime) {
try {
LinkedList<String> sqls = new LinkedList<>();
String source = CurrentUtil.getCliSource() == null ? "" : CurrentUtil.getCliSource();
String version = CurrentUtil.getCliVersion() == null ? "" : CurrentUtil.getCliVersion();
......@@ -621,6 +622,14 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
log.debug("MQ 发送 -> time:" + (currentTime) + "毫秒");
log.info(UserPathDto.setData("下单(唤起支付)", payOrderParam, payResultVo));
return ResponseDto.success(payResultVo);
}catch (Exception e){
currentTime = System.currentTimeMillis();
dataUtils.changeSurplusGeneral(payOrderParam.getTicketId(), payOrderParam.getNumber());
currentTime = System.currentTimeMillis() - currentTime;
log.debug("redis 修改库存 异常 -> time:" + (currentTime) + "毫秒");
log.error("Kylin Order Inner Pay Error = " + e.getMessage());
return ResponseDto.failure(ErrorMapping.get("20018"));//乱七八糟异常
}
}
@Override
......
......@@ -14,6 +14,8 @@ import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;
import javax.servlet.http.HttpServletRequest;
import java.util.Enumeration;
import java.util.List;
/**
* <p>
......@@ -70,6 +72,13 @@ public class PerformancesExpressCallbackServiceImpl extends ServiceImpl<KylinOrd
System.out.println(performanceExpressPushStatusParam);
System.out.println(res);
Enumeration headerNames = httpServletRequest.getHeaderNames();
while (headerNames.hasMoreElements()) {
String key = (String) headerNames.nextElement();
String value = httpServletRequest.getHeader(key);
System.out.println(key + "=" + value);
}
return false;
}
......@@ -78,6 +87,13 @@ public class PerformancesExpressCallbackServiceImpl extends ServiceImpl<KylinOrd
boolean res = shunfengSignUtils.receiveRequestAndCheckSign(JsonUtils.toJson(performanceExpressPushFreightParam), httpServletRequest);
System.out.println(performanceExpressPushFreightParam);
System.out.println(res);
Enumeration headerNames = httpServletRequest.getHeaderNames();
while (headerNames.hasMoreElements()) {
String key = (String) headerNames.nextElement();
String value = httpServletRequest.getHeader(key);
System.out.println(key + "=" + value);
}
/*KylinOrderExpressFeeInfo kylinOrderExpressFeeInfo = new KylinOrderExpressFeeInfo();
String orderExpressFeeInfoId = IDGenerator.nextSnowId();
kylinOrderExpressFeeInfo.setOrderExpressFeeInfoId(orderExpressFeeInfoId);
......@@ -96,6 +112,13 @@ public class PerformancesExpressCallbackServiceImpl extends ServiceImpl<KylinOrd
boolean res = shunfengSignUtils.receiveRequestAndCheckSign(JsonUtils.toJson(performanceExpressPushRouteParam), httpServletRequest);
System.out.println(performanceExpressPushRouteParam);
System.out.println(res);
Enumeration headerNames = httpServletRequest.getHeaderNames();
while (headerNames.hasMoreElements()) {
String key = (String) headerNames.nextElement();
String value = httpServletRequest.getHeader(key);
System.out.println(key + "=" + value);
}
/*KylinOrderExpressRoute kylinOrderExpressRoute = new KylinOrderExpressRoute();
String orderExpressRouteId = IDGenerator.nextSnowId();
kylinOrderExpressRoute.setOrderExpressRouteId(orderExpressRouteId);
......
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