shawenguan 1 ano atrás
pai
commit
21998b926b
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      Scripts/quark/quarkHelper.js

+ 3 - 3
Scripts/quark/quarkHelper.js

@@ -63,7 +63,7 @@ async function getState(cookie){
         },
         body: ``,
     };
-    await magicJS.http.post(options).then(response => {
+    await magicJS.http.get(options).then(response => {
         try {
             const body = response.body;
             magicJS.logger.log(JSON.stringify(body));
@@ -112,9 +112,9 @@ async function signIn(cookie){
             'Cookie': cookie,
             'Content-Type': 'application/json',
         },
-        body: ``,
+        body: `${magicJS.objToQueryStr(params)}`,
     };
-    await magicJS.http.post(options).then(response => {
+    await magicJS.http.get(options).then(response => {
         try {
             const body = response.body;
             magicJS.logger.log(JSON.stringify(body));