chore: remove target directory from git tracking

This commit is contained in:
zhangsz committed 2026-09-20 17:17:04 +08:00
1 parent 586e9a18fd
commit b2e4ea4b91
1 file changed
+14 -13
@@ -31,46 +31,47 @@ public class HuiFuVendorPayController {
private HuiFuVendorPayService vendorPayService; private HuiFuVendorPayService vendorPayService;
@PostMapping("/pay") @PostMapping("/pay")
public WxPlaceOrderResVO pay(@RequestBody DeviceScanPayVO vo, HttpServletRequest request){ public WxPlaceOrderResVO pay(@RequestBody DeviceScanPayVO vo, HttpServletRequest request) {
MobileAppUser currentUser = JkSecurityUtil.getCurrentUser(request); MobileAppUser currentUser = JkSecurityUtil.getCurrentUser(request);
if (Objects.isNull(currentUser) || !currentUser.getId().equals(vo.getUserId())){ if (Objects.isNull(currentUser) || !currentUser.getId().equals(vo.getUserId())) {
throw new ServiceException(401,"非法访问!"); throw new ServiceException(401, "非法访问!");
} }
vo.setUserId(currentUser.getId()); vo.setUserId(currentUser.getId());
return vendorPayService.vendorPay(vo); return vendorPayService.vendorPay(vo);
} }
@PostMapping("/cashOut") @PostMapping("/cashOut")
public CashOutResponse cashOut(@RequestBody CashOutDTO dto){ public CashOutResponse cashOut(@RequestBody CashOutDTO dto) {
return vendorPayService.profitSharingPay(dto); return vendorPayService.profitSharingPay(dto);
} }
@PostMapping("/coursePay") @PostMapping("/coursePay")
public WxPlaceOrderResVO coursePay(@RequestBody PayCourseVO vo,HttpServletRequest request){ public WxPlaceOrderResVO coursePay(@RequestBody PayCourseVO vo, HttpServletRequest request) {
MobileAppUser currentUser = JkSecurityUtil.getCurrentUser(request); MobileAppUser currentUser = JkSecurityUtil.getCurrentUser(request);
if (Objects.isNull(currentUser) || !currentUser.getId().equals(vo.getUserId())){ if (Objects.isNull(currentUser) || !currentUser.getId().equals(vo.getUserId())) {
throw new ServiceException(401,"非法访问!"); throw new ServiceException(401, "非法访问!");
} }
vo.setUserId(currentUser.getId()); vo.setUserId(currentUser.getId());
return vendorPayService.coursePay(vo); return vendorPayService.coursePay(vo);
} }
@PostMapping("/vipRecharge") @PostMapping("/vipRecharge")
public WxPlaceOrderResVO vipRecharge(@RequestBody RechargeVO vo,HttpServletRequest request){ public WxPlaceOrderResVO vipRecharge(@RequestBody RechargeVO vo, HttpServletRequest request) {
MobileAppUser currentUser = JkSecurityUtil.getCurrentUser(request); MobileAppUser currentUser = JkSecurityUtil.getCurrentUser(request);
if (currentUser == null || !currentUser.getId().equals(vo.getUserId())){ if (currentUser == null || !currentUser.getId().equals(vo.getUserId())) {
throw new ServiceException(401,"非法访问!"); throw new ServiceException(401, "非法访问!");
} }
vo.setUserId(currentUser.getId()); vo.setUserId(currentUser.getId());
return vendorPayService.recharge(vo); return vendorPayService.recharge(vo);
} }
@PostMapping("/activeMembership") @PostMapping("/activeMembership")
public WxPlaceOrderResVO activeMembership(@RequestBody HuifuPlaceOrderParamBaseDTO dto,HttpServletRequest request){ public WxPlaceOrderResVO activeMembership(@RequestBody HuifuPlaceOrderParamBaseDTO dto,
HttpServletRequest request) {
MobileAppUser currentUser = JkSecurityUtil.getCurrentUser(request); MobileAppUser currentUser = JkSecurityUtil.getCurrentUser(request);
if (currentUser == null || !currentUser.getId().equals(dto.getUserId())){ if (currentUser == null) {
throw new ServiceException(401,"非法访问!"); throw new ServiceException(401, "非法访问!");
} }
dto.setUserId(currentUser.getId()); dto.setUserId(currentUser.getId());
return vendorPayService.activeMembership(dto); return vendorPayService.activeMembership(dto);