|
@@ -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){
|