1、错误原因
Fri Sep 06 2019 10:34:15 GMT+0800 (中国标准时间) sitemap 索引情况提示
VM3445:1 根据 sitemap 的规则[0],当前页面 [pages/index/index] 将被索引
console.warn @ VM3445:1
(anonymous) @ VM3546:6
(anonymous) @ VM3546:13
VM3460 asdebug.js:1 Fri Sep 06 2019 10:34:15 GMT+0800 (中国标准时间) 配置中关闭合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书检查
VM3445:1 工具未校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书。
console.warn @ VM3445:1
checkUrl @ VM3460 asdebug.js:1
v @ VM3460 asdebug.js:1
createRequestTask @ VM3460 asdebug.js:1
n @ VM3460 asdebug.js:1
invoke @ WAService.js:1
i @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
Cs @ WAService.js:1
a @ WAService.js:1
n @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
HttpRequst @ util.js:16
onLoad @ index.js:274
(anonymous) @ WAService.js:1
p.__callPageLifeTime__ @ WAService.js:1
Ct @ WAService.js:1
(anonymous) @ WAService.js:1
At @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
i.emit @ WAService.js:1
emit @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
n @ VM3460 asdebug.js:1
(anonymous) @ VM3460 asdebug.js:1
(anonymous) @ VM3460 asdebug.js:1
_ws.onmessage @ VM3460 asdebug.js:1
Show 4 more frames
VM3552:4 Fri Sep 06 2019 10:34:18 GMT+0800 (中国标准时间) sitemap 索引情况提示
VM3445:1 根据 sitemap 的规则[0],当前页面 [pages/his/his] 将被索引
console.warn @ VM3445:1
(anonymous) @ VM3552:6
(anonymous) @ VM3552:13
VM3561:4 Fri Sep 06 2019 10:34:22 GMT+0800 (中国标准时间) sitemap 索引情况提示
VM3445:1 根据 sitemap 的规则[0],当前页面 [pages/def/def] 将被索引
console.warn @ VM3445:1
(anonymous) @ VM3561:6
(anonymous) @ VM3561:13
VM3566:4 Fri Sep 06 2019 10:34:25 GMT+0800 (中国标准时间) sitemap 索引情况提示
VM3445:1 根据 sitemap 的规则[0],当前页面 [pages/index/index] 将被索引
console.warn @ VM3445:1
(anonymous) @ VM3566:6
(anonymous) @ VM3566:13
VM3567:4 Fri Sep 06 2019 10:34:28 GMT+0800 (中国标准时间) sitemap 索引情况提示
VM3445:1 根据 sitemap 的规则[0],当前页面 [pages/def/def] 将被索引
console.warn @ VM3445:1
(anonymous) @ VM3567:6
(anonymous) @ VM3567:13
VM3568:4 Fri Sep 06 2019 10:34:29 GMT+0800 (中国标准时间) sitemap 索引情况提示
VM3445:1 根据 sitemap 的规则[0],当前页面 [pages/his/his] 将被索引
console.warn @ VM3445:1
(anonymous) @ VM3568:6
(anonymous) @ VM3568:13
2、错误原因
引用微信小程序官网的说明:
“微信现已开放小程序内搜索,开发者可以通过 sitemap.json
配置,或者管理后台页面收录开关来配置其小程序页面是否允许微信索引。当开发者允许微信索引时,微信会通过爬虫的形式,为小程序的页面内容建立索引。当用户的搜索词条触发该索引时,小程序的页面将可能展示在搜索结果中。 爬虫访问小程序内页面时,会携带特定的 user-agent:mpcrawler
及场景值:1129
。需要注意的是,若小程序爬虫发现的页面数据和真实用户的呈现不一致,那么该页面将不会进入索引中。”
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true,
"coverView": true,
"autoAudits": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
},
"compileType": "miniprogram",
"libVersion": "2.8.0",
"appid": "xxxxxxxxxxxxxxx",
"projectname": "weixin-mini",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
}
3、解决办法
将文件project.config.json中的settings配置中的checkSiteMap,改为false
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true,
"coverView": true,
"autoAudits": false,
"checkInvalidKey": true,
"checkSiteMap": false,
"uploadWithSourceMap": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
},
"compileType": "miniprogram",
"libVersion": "2.8.0",
"appid": "xxxxxxxxxxxxxxxx",
"projectname": "weixin-mini",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
}