教育训练处考试制证系统后端
heheng
2025-02-20 c15dda7ca82a479caa54cbbe169f1cf80c3be156
exam-system/src/main/java/com/gkhy/exam/pay/controller/PaymentApiController.java
@@ -6,10 +6,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Base64;
@@ -54,4 +51,15 @@
        String decodedString = new String(byteArray);
        return decodedString;
    }
    @GetMapping({"/confirm"})
    @ApiOperation("回调确认")
    public void notifyConfirm(String orderNo) {
        try {
            paymentService.notifyConfirm(orderNo);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}