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;