From dbadc28c8f67e76c64b9d3ee502cb247aad98f68 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期五, 21 八月 2026 09:31:32 +0800
Subject: [PATCH] 【丽水】手术出院时间

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/SmsController.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/SmsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/SmsController.java
index 6a16085..fbbb261 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/SmsController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/SmsController.java
@@ -127,7 +127,7 @@
             serviceOutPath.setRadix(format);
             serviceOutPath.setCreateTime(new Date());
             serviceOutPath.setOrgid(vo.getOrgid());
-            String url = ip + ":" + req_path + "/wt?p=" + format;
+            String url = StringUtils.isNotEmpty(req_path) ? ip + ":" + req_path + "/wt?p=" + format : ip + "/wt?p=" + format;
             content = "鎮ㄥソ锛岄個璇锋偍濉啓鍑洪櫌璋冩煡琛紝璇风偣鍑�" + url + "濉啓銆傛劅璋㈡偍閰嶅悎锛�";
             serviceOutPath.setUrl(url);
             iServiceOutPathService.insertServiceOutPath(serviceOutPath);
@@ -222,7 +222,7 @@
             serviceOutPath.setCreateTime(new Date());
             serviceOutPath.setOrgid(vo.getOrgid());
             iServiceOutPathService.insertServiceOutPath(serviceOutPath);
-            String url = ip + ":" + req_path + "/wt?p=" + format;
+            String url = StringUtils.isNotEmpty(req_path) ? ip + ":" + req_path + "/wt?p=" + format : ip + "/wt?p=" + format;
             sendMsg = smsUtils.sendChat(url, vo.getPhone(), vo.getIdCard());
         }
         return AjaxResult.success(sendMsg);
@@ -251,7 +251,7 @@
             serviceOutPath.setRadix(format);
             serviceOutPath.setCreateTime(new Date());
             serviceOutPath.setOrgid(vo.getOrgid());
-            String url = ip + ":" + req_path + "/wt?p=" + format;
+            String url = StringUtils.isNotEmpty(req_path) ? ip + ":" + req_path + "/wt?p=" + format : ip + "/wt?p=" + format;
 //            content = "鎮ㄥソ锛岄個璇锋偍濉啓鍑洪櫌璋冩煡琛紝璇风偣鍑�" + url + "濉啓銆傛劅璋㈡偍閰嶅悎锛�";
             content = url;
             serviceOutPath.setUrl(url);

--
Gitblit v1.9.3