提交 b60adf56 编写于 作者: H hjdhnx

修复dealJson函数逻辑错误导致的兔小贝源推荐无数据

上级 28984ff6
3.9.7beta1 3.9.7beta2
\ No newline at end of file \ No newline at end of file
...@@ -667,7 +667,8 @@ function readFile(filePath){ ...@@ -667,7 +667,8 @@ function readFile(filePath){
*/ */
function dealJson(html) { function dealJson(html) {
try { try {
return html.match(/[\w|\W|\s|\S]*?(\{[\w|\W|\s|\S]*\})/).group[1]; // html = html.match(/[\w|\W|\s|\S]*?(\{[\w|\W|\s|\S]*\})/).group[1];
html = '{'+html.match(/.*?\{(.*)\}/)[1]+'}';
} catch (e) { } catch (e) {
} }
try { try {
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册