陶杰
2024-12-21 2630f6e2d847435930539f3fb2aaabcab922c3d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);
    }
 
}