教育训练处考试制证系统后端
heheng
2025-05-19 c0895bccd7e54f867bbdf0f32d2fd04e97d0c223
exam-system/src/main/java/com/gkhy/exam/pay/controller/PaymentApiController.java
@@ -6,6 +6,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -55,6 +56,7 @@
    @GetMapping({"/confirm"})
    @ApiOperation("回调确认")
    @Anonymous
    public void notifyConfirm(String orderNo) {
        try {
            paymentService.notifyConfirm(orderNo);
@@ -62,4 +64,11 @@
            e.printStackTrace();
        }
    }
    @Scheduled(cron = "0 23 10 * * ? ")
    // @Scheduled(cron = "0 37 17 * * ?")
    public void checkWarning() {
        paymentService.schedulePayment();
    }
}