From 6a7ba7d01095485ff8beb960bd967c7a875129f9 Mon Sep 17 00:00:00 2001 From: mao Date: Tue, 6 May 2025 12:22:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(app/controller):=20=E4=BF=AE=E6=AD=A3=20SMS?= =?UTF-8?q?=20UUID=20=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 SMS UUID 中的空格,统一为短横线格式 -优化了 UUID 的生成和处理逻辑 --- app/controller/SmsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/SmsController.php b/app/controller/SmsController.php index ecd2d64..4eaf487 100644 --- a/app/controller/SmsController.php +++ b/app/controller/SmsController.php @@ -173,7 +173,7 @@ class SmsController $uuid = uniqid('', true); $uuid = md5($uuid); - $uuid = substr($uuid, 0, 8) . ' - ' . substr($uuid, 8, 4) . ' - ' . substr($uuid, 12, 4) . ' - ' . substr($uuid, 16, 4) . ' - ' . substr($uuid, 20, 12); + $uuid = substr($uuid, 0, 8) . '-' . substr($uuid, 8, 4) . '-' . substr($uuid, 12, 4) . '-' . substr($uuid, 16, 4) . '-' . substr($uuid, 20, 12); $uuidExist = SmsApp::where('app_uuid', $uuid)->first(); if ($uuidExist) {