| | |
| | | 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; |
| | |
| | | |
| | | @GetMapping({"/confirm"}) |
| | | @ApiOperation("回调确认") |
| | | @Anonymous |
| | | public void notifyConfirm(String orderNo) { |
| | | try { |
| | | paymentService.notifyConfirm(orderNo); |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "0 23 10 * * ? ") |
| | | // @Scheduled(cron = "0 37 17 * * ?") |
| | | public void checkWarning() { |
| | | paymentService.schedulePayment(); |
| | | } |
| | | |
| | | } |