...
|
...
|
@@ -297,8 +297,10 @@ const getGlobalProductDetailData = (skn, channelNum, channel) => { |
|
|
if (result.html && !_.get(result.html, 'code', '')) {
|
|
|
let regContent = /<body[^>]*>([\s\S]*)<\/body>/.exec(result.html);
|
|
|
|
|
|
html = regContent[1] || '';
|
|
|
html = html.replace(/<script.*?>.*?<\/script>/ig, '');
|
|
|
if (regContent && regContent.length) {
|
|
|
html = regContent[1] || '';
|
|
|
html = html.replace(/<script.*?>.*?<\/script>/ig, '');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
Object.assign(resData, result.header, {
|
...
|
...
|
|