| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | |
| | | @Value("${sms.time}") |
| | | private Long time; |
| | | |
| | | @AnonymousGetMapping("/{phone}") |
| | | @AnonymousGetMapping |
| | | @ApiOperation("短信验证码") |
| | | public ResponseEntity<Object> toPayAsPc(@PathVariable String phone) { |
| | | public ResponseEntity<Object> toPayAsPc(@RequestParam String phone) { |
| | | String uuid = key + IdUtil.simpleUUID(); |
| | | System.out.println(phone); |
| | | //创建验证码 |