AutoOutAPKUi.java的文本输入默认做移除首尾空格处理
This commit is contained in:
parent
74768e4f2c
commit
96826b23da
@ -44,7 +44,7 @@ public class AutoOutAPKAddChannelUi {
|
|||||||
Map<String,String> map=new HashMap<>();
|
Map<String,String> map=new HashMap<>();
|
||||||
map.put("NAME",name);
|
map.put("NAME",name);
|
||||||
for (JTextField textField : list) {
|
for (JTextField textField : list) {
|
||||||
map.put(textField.getName(),textField.getText());
|
map.put(textField.getName().trim(),textField.getText().trim());
|
||||||
}
|
}
|
||||||
inter.onOut(map);
|
inter.onOut(map);
|
||||||
AutoOutAPKAddChannelUi.this.frame.dispose();
|
AutoOutAPKAddChannelUi.this.frame.dispose();
|
||||||
|
@ -84,10 +84,10 @@ public class AutoOutAPKUi {
|
|||||||
start.addActionListener(new ActionListener() {
|
start.addActionListener(new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
String gid = gameId.getText();
|
String gid = gameId.getText().trim();
|
||||||
String jid = jiguang.getText();
|
String jid = jiguang.getText().trim();
|
||||||
String pid = packageName.getText();
|
String pid = packageName.getText().trim();
|
||||||
String path = appPath.getText();
|
String path = appPath.getText().trim();
|
||||||
if (StringUtils.isEmpty(gid) || StringUtils.isEmpty(pid) || StringUtils.isEmpty(path)) {
|
if (StringUtils.isEmpty(gid) || StringUtils.isEmpty(pid) || StringUtils.isEmpty(path)) {
|
||||||
new TextToDialog("警告", "有参数未填写");
|
new TextToDialog("警告", "有参数未填写");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user