|
|
%!s(int64=2) %!d(string=hai) anos | |
|---|---|---|
| module | %!s(int64=3) %!d(string=hai) anos | |
| resources | %!s(int64=4) %!d(string=hai) anos | |
| .DS_Store | %!s(int64=4) %!d(string=hai) anos | |
| .gitattributes | %!s(int64=4) %!d(string=hai) anos | |
| .gitignore | %!s(int64=4) %!d(string=hai) anos | |
| LICENSE.md | %!s(int64=4) %!d(string=hai) anos | |
| README.md | %!s(int64=2) %!d(string=hai) anos | |
| config2.json | %!s(int64=2) %!d(string=hai) anos | |
| config3.json | %!s(int64=2) %!d(string=hai) anos | |
| icon.ico | %!s(int64=2) %!d(string=hai) anos | |
| main.js | %!s(int64=2) %!d(string=hai) anos | |
| package-lock.json | %!s(int64=4) %!d(string=hai) anos | |
| package.json | %!s(int64=2) %!d(string=hai) anos | |
| preload.js | %!s(int64=3) %!d(string=hai) anos | |
| yarn-error.log | %!s(int64=4) %!d(string=hai) anos | |
| yarn.lock | %!s(int64=2) %!d(string=hai) anos |
var myHeaders = new Headers();
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("http://find.iplink.cc/find_http?key=0efc5846c9c5b241&count=1&type=json&only=0&pw=no", requestOptions)
.then(response => response.json())
.then(result => {
console.log(result)
const proxy = `http://${result.list[0].sever}:${result.list[0].port}`
logBox.add(`获取到代理IP:${proxy}`)
electron.ipcRenderer.send('openWindow', {"url": "https://www.google.com/","proxy":proxy})
})
.catch(error => console.log('error', error));
electron.ipcRenderer.send('setStoData', {
"key":"ggclick",
"value": {
"gjc": window.gjc.value,
"mubiao": window.gjc.value
}
})
electron.ipcRenderer.sendSync('getStoData', {
"key":"ggclick"
})