From a56a9afaa634a26c9f02acca1bf35eff7b2f2e33 Mon Sep 17 00:00:00 2001
From: 彭雪彬 <1724387007@qq.com>
Date: Tue, 22 Jul 2025 19:45:04 +0800
Subject: [PATCH] 骑手订单新增用户手机号字段

---
 oying-system/src/main/java/com/oying/modules/security/rest/VerificationController.java |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/oying-system/src/main/java/com/oying/modules/security/rest/VerificationController.java b/oying-system/src/main/java/com/oying/modules/security/rest/VerificationController.java
index cd6d3d6..c7bc1c7 100644
--- a/oying-system/src/main/java/com/oying/modules/security/rest/VerificationController.java
+++ b/oying-system/src/main/java/com/oying/modules/security/rest/VerificationController.java
@@ -39,12 +39,11 @@
     @ApiOperation("短信验证码")
     public ResponseEntity<Object> verification(@RequestParam String phone) {
         String uuid = key + IdUtil.simpleUUID();
-        System.out.println(phone);
         //创建验证码
         String verification = (int) ((Math.random() * 9 + 1) * 100000) + "";
+        SendMessageUtils.sendMsg(properties.getUrlSendMsg(), phone, SendMessageUtils.SIGN,
+                SendMessageUtils.MESSAGE.replace("{code}", verification), properties);
         redisUtils.set(uuid, verification, time);
-        String message = "您的验证码为:" + verification + ",请勿泄露于他人!";
-        SendMessageUtils.sendMsg(properties.getUrlSendMsg(), phone, message, properties);
         return ResponseEntity.ok(R.success(uuid));
     }
 }

--
Gitblit v1.9.3