shawenguan 1 سال پیش
والد
کامیت
296d5974a8
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Scripts/quark/quarkHelper.js

+ 2 - 2
Scripts/quark/quarkHelper.js

@@ -63,7 +63,7 @@ async function getState(cookie){
         },
         body: ``,
     };
-    await magicJS.http.get(options).then(response => {
+    return await magicJS.http.get(options).then(response => {
         try {
             const body = response.body;
             magicJS.logger.log(JSON.stringify(body));
@@ -114,7 +114,7 @@ async function signIn(cookie){
         },
         body: `${magicJS.objToQueryStr(params)}`,
     };
-    await magicJS.http.get(options).then(response => {
+    return await magicJS.http.get(options).then(response => {
         try {
             const body = response.body;
             magicJS.logger.log(JSON.stringify(body));