xin
2025-05-30 625692be1b447d98e1a37f3981777bc14246aed9
匿名访问正则表达式{}问题
2 files modified
12 ■■■■ changed files
oying-system/src/main/java/com/oying/modules/security/rest/VerificationController.java 6 ●●●● patch | view | raw | blame | history
oying-system/src/main/resources/config/application.yml 6 ●●●● patch | view | raw | blame | history
oying-system/src/main/java/com/oying/modules/security/rest/VerificationController.java
@@ -9,8 +9,8 @@
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;
/**
@@ -31,9 +31,9 @@
    @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);
        //创建验证码
oying-system/src/main/resources/config/application.yml
@@ -33,10 +33,10 @@
  redis:
    #数据库索引
    database: 16
    host: 192.168.28.55
    database: 0
    host: 127.0.0.1
    port: 6379
    password: qwert321
    password:
    #连接超时时间
    timeout: 5000
    # 连接池配置