Sem descrição

PUGE 5e6715beef 设置最大打开窗口数量 há 2 anos atrás
module 113737b0cd loadfile há 3 anos atrás
resources 16201e0e8c save há 4 anos atrás
.DS_Store ece33cc5fc save há 4 anos atrás
.gitattributes 2392b79486 start há 4 anos atrás
.gitignore 2392b79486 start há 4 anos atrás
LICENSE.md 2392b79486 start há 4 anos atrás
README.md 77fdf673ea Update README.md há 2 anos atrás
config2.json 3affd1c2cf 增加多个接口 há 2 anos atrás
config3.json db73451f34 save há 2 anos atrás
icon.ico ccb99eea4e new icon ewaddir há 2 anos atrás
main.js 5e6715beef 设置最大打开窗口数量 há 2 anos atrás
package-lock.json ece33cc5fc save há 4 anos atrás
package.json 3affd1c2cf 增加多个接口 há 2 anos atrás
preload.js 113737b0cd loadfile há 3 anos atrás
yarn-error.log ece33cc5fc save há 4 anos atrás
yarn.lock ccb99eea4e new icon ewaddir há 2 anos atrás

README.md

获取代理并打开新窗口

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"
})