No Description

PUGE 3565f93ccb save 5 months ago
dist 3565f93ccb save 5 months ago
module 113737b0cd loadfile 3 years ago
resources 16201e0e8c save 4 years ago
.DS_Store ece33cc5fc save 4 years ago
.gitattributes 2392b79486 start 4 years ago
.gitignore 3565f93ccb save 5 months ago
LICENSE.md 2392b79486 start 4 years ago
README.md 77fdf673ea Update README.md 2 years ago
config.json bea7f93143 获取响应数据 6 months ago
config2.json 3affd1c2cf 增加多个接口 2 years ago
config3.json c0705e202a 禁用安全限制 6 months ago
icon.ico 14a36a9a87 save 9 months ago
icon2.ico 14a36a9a87 save 9 months ago
index.html f683c340b9 fix bug 8 months ago
main.js 1b72665d81 save 5 months ago
package-lock.json 82e879a5a5 更新最新版本依赖 1 year ago
package.json bea7f93143 获取响应数据 6 months ago
preLoadFile.js 06fea47df7 增加下载文件功能 5 months ago
preload.js 06fea47df7 增加下载文件功能 5 months ago
yarn.lock bea7f93143 获取响应数据 6 months ago

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