aiVip
This commit is contained in:
@@ -30,6 +30,8 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.*;
|
||||
@@ -209,7 +211,7 @@ public class AliPayServiceImpl implements AliPayService {
|
||||
userCoinJf(order);
|
||||
}
|
||||
//开通aivip
|
||||
aiVipLogService.openAiVip(order.getAiBuyConfigId());
|
||||
aiVipLogService.openAiVip(order);
|
||||
}
|
||||
|
||||
if("point".equals(subject)){
|
||||
@@ -338,8 +340,8 @@ public class AliPayServiceImpl implements AliPayService {
|
||||
}
|
||||
log.error(">>>>>>>>>>验签失败 params = {}", params.toString());
|
||||
return "fail";
|
||||
|
||||
} catch (Exception e) {
|
||||
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
||||
log.error(">>>>>>>>>>订单回调异常: 订单号 = {}, msg = {}", params.toString(), e.getMessage());
|
||||
return "fail";
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ public class WxpayServiceImpl extends ServiceImpl<PayWechatOrderDao, PayWechatOr
|
||||
userCoinJf(order);
|
||||
}
|
||||
//开通aivip
|
||||
aiVipLogService.openAiVip(order.getAiBuyConfigId());
|
||||
aiVipLogService.openAiVip(order);
|
||||
}
|
||||
|
||||
// 1.根据订单id获取订单信息
|
||||
|
||||
Reference in New Issue
Block a user