LIVE_YE 1 ano atrás
pai
commit
265977dff4

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/SendSmsController.java

@@ -23,7 +23,7 @@ public class SendSmsController {
      * @return
      */
     @GetMapping("/{phone}")
-    public AjaxResult sendSms(String phone) {
+    public AjaxResult sendSms(@PathVariable String phone) {
         JSONObject jsonObject = new JSONObject();
         String code = SendSmsUtils.getCode(4);
         jsonObject.put("code", code);