|
@@ -727,9 +727,8 @@ async function getAppConf(){
|
|
|
body: body
|
|
body: body
|
|
|
}
|
|
}
|
|
|
magicJS.http.post(options).then(resp => {
|
|
magicJS.http.post(options).then(resp => {
|
|
|
- const htmlText = resp.body;
|
|
|
|
|
try {
|
|
try {
|
|
|
- magicJS.logger.info(`页面数据:${htmlText}`);
|
|
|
|
|
|
|
+ magicJS.logger.info(`页面数据:${JSON.stringify(resp.body)}`);
|
|
|
magicJS.logger.info(`响应头部:${JSON.stringify(resp.headers)}`);
|
|
magicJS.logger.info(`响应头部:${JSON.stringify(resp.headers)}`);
|
|
|
let urlMatch = htmlText.match(/https?:\/\/[^\s'"]+/); // 正则表达式匹配
|
|
let urlMatch = htmlText.match(/https?:\/\/[^\s'"]+/); // 正则表达式匹配
|
|
|
if(urlMatch){
|
|
if(urlMatch){
|