From 96826b23da6236557f00f0ada2eec22a20e61993 Mon Sep 17 00:00:00 2001 From: yutou Date: Wed, 11 Nov 2020 18:32:52 +0800 Subject: [PATCH] =?UTF-8?q?AutoOutAPKUi.java=E7=9A=84=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E9=BB=98=E8=AE=A4=E5=81=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E9=A6=96=E5=B0=BE=E7=A9=BA=E6=A0=BC=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/qy/ui/AutoOutAPKAddChannelUi.java | 2 +- src/com/qy/ui/AutoOutAPKUi.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/com/qy/ui/AutoOutAPKAddChannelUi.java b/src/com/qy/ui/AutoOutAPKAddChannelUi.java index 99e6254..c8461e1 100644 --- a/src/com/qy/ui/AutoOutAPKAddChannelUi.java +++ b/src/com/qy/ui/AutoOutAPKAddChannelUi.java @@ -44,7 +44,7 @@ public class AutoOutAPKAddChannelUi { Map map=new HashMap<>(); map.put("NAME",name); for (JTextField textField : list) { - map.put(textField.getName(),textField.getText()); + map.put(textField.getName().trim(),textField.getText().trim()); } inter.onOut(map); AutoOutAPKAddChannelUi.this.frame.dispose(); diff --git a/src/com/qy/ui/AutoOutAPKUi.java b/src/com/qy/ui/AutoOutAPKUi.java index f372316..8b977df 100644 --- a/src/com/qy/ui/AutoOutAPKUi.java +++ b/src/com/qy/ui/AutoOutAPKUi.java @@ -84,10 +84,10 @@ public class AutoOutAPKUi { start.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { - String gid = gameId.getText(); - String jid = jiguang.getText(); - String pid = packageName.getText(); - String path = appPath.getText(); + String gid = gameId.getText().trim(); + String jid = jiguang.getText().trim(); + String pid = packageName.getText().trim(); + String path = appPath.getText().trim(); if (StringUtils.isEmpty(gid) || StringUtils.isEmpty(pid) || StringUtils.isEmpty(path)) { new TextToDialog("警告", "有参数未填写"); return;