index.js:151
'type': (type != "php" && type != "asp" && type != "aspx" && type != "custom") ? type:"custom",
写反啦,这样写是输出custom的,要反过来:
'type': (type != "php" && type != "asp" && type != "aspx" && type != "custom") ? "custom":type,
另外,现版本一键需要额外参数,下面给出额外参数:index.js:145-160
grid.getAllRowIds().split(",").map((id) => {
let type = grid.cells(id, 3).getValue();
let data = {
base:{
'url': grid.cells(id, 4).getValue(),
'category': grid.cells(id, 1).getValue(),
'pwd': grid.cells(id, 2).getValue(),
'type': (type != "php" && type != "asp" && type != "aspx" && type != "custom") ? "custom":type,
'note': grid.cells(id, 0).getValue(),
"encoder":"default",
"decoder":"default"
},
"http": {},
"other": {},
}
let ret = antSword.ipcRenderer.sendSync('shell-add', data);
index.js:151
'type': (type != "php" && type != "asp" && type != "aspx" && type != "custom") ? type:"custom",
写反啦,这样写是输出custom的,要反过来:
'type': (type != "php" && type != "asp" && type != "aspx" && type != "custom") ? "custom":type,
另外,现版本一键需要额外参数,下面给出额外参数:index.js:145-160
grid.getAllRowIds().split(",").map((id) => {
let type = grid.cells(id, 3).getValue();
let data = {
base:{
'url': grid.cells(id, 4).getValue(),
'category': grid.cells(id, 1).getValue(),
'pwd': grid.cells(id, 2).getValue(),
'type': (type != "php" && type != "asp" && type != "aspx" && type != "custom") ? "custom":type,
'note': grid.cells(id, 0).getValue(),
"encoder":"default",
"decoder":"default"
},
"http": {},
"other": {},
}
let ret = antSword.ipcRenderer.sendSync('shell-add', data);