diff --git a/history.md b/history.md index 427c07a..3644916 100644 --- a/history.md +++ b/history.md @@ -1,6 +1,10 @@ ## Change History +### v0.3.7 + +- Fix SZ market insider trading query for the DOM structure has been changed. + ### v0.3.6 - Add insider trading query support for quotes start with `001`. diff --git a/lib/insider.js b/lib/insider.js index 014a47a..15608a3 100644 --- a/lib/insider.js +++ b/lib/insider.js @@ -188,11 +188,11 @@ let getSzPagingInfo = function getSzPagingInfo(html){ if(!nextFn && !prevFn) { return { totalPg:1, totalCount: $('tr.cls-data-tr', this).length }; } // gotoReportPageNo('1801_nm','tab1',2,584,11670) - global.gotoReportPageNo = (mkt, id, nIdx, totalPg, totalCount) => [totalPg, totalCount]; + global.gotoReportPageNo = (mkt, id, nIdx, totalPg, totalCount) => ({totalPg, totalCount}); let pgInfo = vm.runInThisContext(nextFn||prevFn); - return {totalPg:pgInfo[0], totalCount:pgInfo[1]}; + return pgInfo; }; /** diff --git a/package.json b/package.json index b140caf..a53316b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "star", "author": "hustcer", "public": true, - "version": "0.3.6", + "version": "0.3.7", "license": "MIT", "homepage": "http://traceinvest.com", "description": "A STock Analysis and Research tool for terminal users.",