shawenguan il y a 1 an
Parent
commit
6e8bfc24e2
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      Scripts/52pojie/52pojieSignIn.js

+ 4 - 1
Scripts/52pojie/52pojieSignIn.js

@@ -171,12 +171,15 @@ async function taskDraw() {
 async function proxyTaskDraw() {
     let data = {
         url: encodeURIComponent(`https://www.52pojie.cn/home.php?mod=task&do=draw&id=2&referer=https%3A%2F%2Fwww.52pojie.cn%2F.%2F%2F`),
-        headers: JSON.stringify(gCommonHeaders),
+        headers: gCommonHeaders,
         body: ``,
     };
     let options = {
         url: 'http://192.168.0.137/RemoteBrowser/index.php',
         body: JSON.stringify(data),
+        headers: {
+            "content-type": "application/json; charset=utf-8"
+        }
     };
     let result = await magicJS.http.post(options).then(response => {
         try {