Browse Source

feature 代码提交

xiahan 4 months ago
parent
commit
b29548a48e

+ 1 - 4
zhsw-common/src/main/java/com/rongwei/zhsw/system/wechat/impl/PayMentServiceImpl.java

@@ -168,10 +168,6 @@ public class PayMentServiceImpl implements PayMentService {
             log.error("回调函数解析异常");
             return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(error.toString());
         }
-        ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
-        HttpServletRequest request = attributes.getRequest();
-        // 设置租户信息 自动切库
-        request.setAttribute(Constants.SAAS_LOGIN_TOKEN, deKey);
         ObjectMapper mapper = new ObjectMapper();
         WeChatPayTransactionVo transaction = null;
         try {
@@ -191,6 +187,7 @@ public class PayMentServiceImpl implements PayMentService {
         log.error("开始更新缴费记录信息");
         // 更新缴费记录相关信息
         int i = swBillingRecordService.getBaseMapper().updateWeChatPayInfo(deKey, outTradeNo, transactionId, analysisStr, successTime);
+
         log.debug("受影响的行数:{}", i);
         if (i > 0) {
             return ResponseEntity.status(HttpStatus.OK).body("");