shawenguan hai 1 ano
pai
achega
a2fbe51534
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Scripts/telecom/cloud189Helper.js

+ 3 - 1
Scripts/telecom/cloud189Helper.js

@@ -125,10 +125,12 @@ async function getLoginAccoutUrl(url){
         magicJS.http.get(options).then(resp => {
             const htmlText = resp.body;
             try {
-                // magicJS.logger.info(`页面数据:${data}`);
+                magicJS.logger.info(`页面数据:${data}`);
                 let urlMatch = htmlText.match(/<a id="j-tab-login-link"[^>]*href="([^"]+)"/); // 正则表达式匹配
                 if(urlMatch){
                     resolve(urlMatch[1]);
+                }else{
+                    resolve();
                 }
             } catch (err) {
                 resolve();