package com.mzl.flower.web.payment; import com.mzl.flower.service.payment.UserPaymentSybService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; @RestController @RequestMapping("/api/ua/notify/syb") @Slf4j public class PaymentCallBackSybResource { @Autowired private UserPaymentSybService paymentSybService; @RequestMapping(value = "/paid", method = RequestMethod.POST) @ResponseBody public String handlePayCallback(HttpServletRequest request) { log.info("通联回调"); return paymentSybService.handlePayCallback(request); } }