From 2a125d08bd4437dbf0e93f2d25ea196715ce82a4 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 09 六月 2025 14:21:38 +0800 Subject: [PATCH] 下发执行功能优化 添加站点默认值 --- rsf-framework/src/main/java/com/vincent/rsf/framework/common/R.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rsf-framework/src/main/java/com/vincent/rsf/framework/common/R.java b/rsf-framework/src/main/java/com/vincent/rsf/framework/common/R.java index df80b60..08e9772 100644 --- a/rsf-framework/src/main/java/com/vincent/rsf/framework/common/R.java +++ b/rsf-framework/src/main/java/com/vincent/rsf/framework/common/R.java @@ -52,9 +52,9 @@ return parse(BaseRes.ERROR); } String[] msg = message.split("-"); - if(msg.length==2){ - return new R(Integer.parseInt(msg[0]),msg[1]); - }else{ + if (msg.length == 2) { + return new R(Integer.parseInt(msg[0].replaceAll(" ", "")), msg[1]); + } else { return parse("500-".concat(message)); } } -- Gitblit v1.9.1