zouxuan 2 年之前
父节点
当前提交
6f91f25a8d

+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/dal/dto/VipGroupBuyParamsDto.java

@@ -34,5 +34,5 @@ public class VipGroupBuyParamsDto extends BaseEntity {
     private Integer userId;
 
     @ApiModelProperty(value = "是否继续支付")
-    private Boolean continuePay;
+    private Boolean continuePay = false;
 }

+ 5 - 4
mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupServiceImpl.java

@@ -220,7 +220,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
     @Autowired
     private ImLiveRoomVideoService imLiveRoomVideoService;
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(VipGroup.class);
+    private static final Logger businessLogger = LoggerFactory.getLogger(VipGroup.class);
 
     @Override
     public BaseDAO<Long, VipGroup> getDAO() {
@@ -1524,7 +1524,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
                     vipGroupApplyBaseInfoDto.getName());
         } catch (Exception e) {
             e.printStackTrace();
-            LOGGER.error("消息发送失败:{}", e);
+            businessLogger.error("消息发送失败:{}", e);
         }
         return BaseController.succeed(vipGroupApplyBaseInfoDto.getAuditStatus().getCode());
     }
@@ -2627,6 +2627,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
     @Override
     @Transactional(rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
     public HttpResponseResult buyVipGroup(VipGroupBuyParamsDto vipGroupBuyParams) throws Exception {
+        businessLogger.info("buyVipGroup param:{}",vipGroupBuyParams.toString());
         SysUser user = sysUserService.getUser();
         vipGroupBuyParams.setUserId(user.getId());
         Integer userId = vipGroupBuyParams.getUserId();
@@ -2777,7 +2778,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
         try {
             contractService.register(userId, user.getRealName(), user.getIdCardNo(), user.getPhone());
         } catch (Exception e) {
-            LOGGER.error("[{}]课程购买协议生成错误:{}", vipGroup.getId(), e.getCause());
+            businessLogger.error("[{}]课程购买协议生成错误:{}", vipGroup.getId(), e.getCause());
         }
 
         String baseApiUrl = sysConfigDao.findConfigValue("base_api_url");
@@ -2992,7 +2993,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
                 try {
                     contractService.transferVipGroupCoursesContract(userId, vipGroup.getId(), order.getType());
                 } catch (Exception e) {
-                    LOGGER.error(MessageFormatter.arrayFormat("课程[{}]购买协议错误:{}", vipGroup.getId(), e.getMessage()), e);
+                    businessLogger.error(MessageFormatter.arrayFormat("课程[{}]购买协议错误:{}", vipGroup.getId(), e.getMessage()), e);
                 }
             }
             if(groupType == LIVE){