AutoOutAPKUi.java的文本输入默认做移除首尾空格处理

This commit is contained in:
yutou 2020-11-11 18:32:52 +08:00
parent 74768e4f2c
commit 96826b23da
2 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,7 @@ public class AutoOutAPKAddChannelUi {
Map<String,String> 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();

View File

@ -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;