|
@@ -313,6 +313,8 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
|
|
|
|
|
private final GroupsRelationNetflixService groupsRelationNetflixService;
|
|
private final GroupsRelationNetflixService groupsRelationNetflixService;
|
|
|
|
|
|
|
|
|
|
+ private final OrderDonExceptionUserRecordMapper orderDonExceptionUserRecordMapper;
|
|
|
|
|
+
|
|
|
private final List<String> noChekGoodsTemp = List.of("Apple One", "Youtube", "Spotify");
|
|
private final List<String> noChekGoodsTemp = List.of("Apple One", "Youtube", "Spotify");
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Throwable.class)
|
|
@Transactional(rollbackFor = Throwable.class)
|
|
@@ -1125,6 +1127,30 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //是否是河南濮阳ip 直接退款mj
|
|
|
|
|
+ if (orderDon.getGoodsId() == 26) {
|
|
|
|
|
+ OrderDonLocationRelate orderDonLocationRelate = orderDonLocationRelateMapper.selectOne(Wrappers.lambdaQuery(OrderDonLocationRelate.class)
|
|
|
|
|
+ .eq(OrderDonLocationRelate::getOrderId, orderDon.getId())
|
|
|
|
|
+ .last("limit 1"));
|
|
|
|
|
+ if (orderDonLocationRelate != null) {
|
|
|
|
|
+ String address = StringUtil.paidIpAddress(orderDonLocationRelate.getIp());
|
|
|
|
|
+ if (address.contains("濮阳")) {
|
|
|
|
|
+ log.info("该支付账号id:{} 河南濮阳ip 直接退款mj", buyerId);
|
|
|
|
|
+ notifyRefundOrder(orderDon, goodsDon, sku);
|
|
|
|
|
+ //记录
|
|
|
|
|
+ OrderDonExceptionUserRecord exceptionUserRecord = new OrderDonExceptionUserRecord();
|
|
|
|
|
+ exceptionUserRecord.setOrderId(orderDon.getId());
|
|
|
|
|
+ exceptionUserRecord.setUserId(orderDon.getUserId());
|
|
|
|
|
+ exceptionUserRecord.setBuyerId(orderDon.getBuyerId());
|
|
|
|
|
+ exceptionUserRecord.setIp(orderDonLocationRelate.getIp());
|
|
|
|
|
+ exceptionUserRecord.setAddress(address);
|
|
|
|
|
+ orderDonExceptionUserRecordMapper.insert(exceptionUserRecord);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
if (orderDon.getOrderType() == 1 && StrUtil.isNotEmpty(buyerId)) {
|
|
if (orderDon.getOrderType() == 1 && StrUtil.isNotEmpty(buyerId)) {
|
|
|
//近一个月同一买家id 只能购买一次 多人
|
|
//近一个月同一买家id 只能购买一次 多人
|
|
|
if (orderDon.getGoodsId() == 26l && sku.getNum() != 1) {
|
|
if (orderDon.getGoodsId() == 26l && sku.getNum() != 1) {
|