Sfoglia il codice sorgente

Merge branch 'master' of https://github.com/PUGE/assist

PUGE 2 anni fa
parent
commit
c55099e639
7 ha cambiato i file con 4 aggiunte e 6 eliminazioni
  1. 2 2
      back/background.js
  2. 1 3
      back/options.js
  3. 1 1
      back/popup.js
  4. 0 0
      background.js
  5. 0 0
      insert.js
  6. 0 0
      js/options.js
  7. 0 0
      js/popup.js

+ 2 - 2
back/background.js

@@ -53,8 +53,8 @@ function clearData (data) {
 
 function reGetData (url, callBack) {
   const nowTime = Date.parse(new Date())
-  const serverUrl = 'https://going.run/assistAll'
-  fetch(`${serverUrl}?route=search&username=` + (userInfo.username || ''), {
+  const serverUrl = 'https://hanshu.run/assist?route=assistAll'
+  fetch(`${serverUrl}&username=` + (userInfo.username || ''), {
     method: 'POST',
     body: JSON.stringify({
       "edition": 5,

+ 1 - 3
back/options.js

@@ -1,8 +1,6 @@
 //在popup.js 中调用 backgourd.js 中的变量和方法,很重要
 var bg = chrome.extension.getBackgroundPage();
 
-const serverUrl = 'https://going.run/assist'
-
 function login (username, password) {
   fetch(`https://user.hanshu.run/login`, {
     method: 'POST',
@@ -21,7 +19,7 @@ function login (username, password) {
       chrome.runtime.sendMessage({name:"reloadUser"},function() {})
       document.querySelector('.login-box').style.display = 'none'
       let newHtml = `<table border="0"><thead><tr><th>编号</th><th>脚本名称</th><th>开启状态</th></tr></thead><tbody>`
-      fetch(`https://going.run/assist?route=getList&username=${username}&session=${bg.userInfo.session}`).then((response) => {return response.json();}).then((res) => {
+      fetch(`https://hanshu.run/assist?route=getList&username=${username}&session=${bg.userInfo.session}`).then((response) => {return response.json();}).then((res) => {
         console.log(bg.openList)
         res.data.forEach(element => {
           newHtml += `<tr><td>${element.id}</td><td>${element.name}</td><td><input type="checkbox" key="${element.id}" id="check${element.id}" name="check${element.id}" ${bg.openList[element.id] ? 'checked' : ''}></td></tr>`

+ 1 - 1
back/popup.js

@@ -2,7 +2,7 @@
 var bg = chrome.extension.getBackgroundPage();
 // bg.count = bg.count+1;
 // console.log(bg)
-const serverUrl = 'https://going.run/assist'
+const serverUrl = 'https://hanshu.run/assist'
 
 function owoReplaceAll(str, s1, s2) {
   while (str.indexOf(s1) >= 0) {

File diff suppressed because it is too large
+ 0 - 0
background.js


File diff suppressed because it is too large
+ 0 - 0
insert.js


File diff suppressed because it is too large
+ 0 - 0
js/options.js


File diff suppressed because it is too large
+ 0 - 0
js/popup.js


Some files were not shown because too many files changed in this diff