|
@@ -33,11 +33,55 @@ let getBigNews = function (callback) {
|
|
|
})
|
|
|
}
|
|
|
// A股快讯盘中异动请求
|
|
|
-
|
|
|
+let getChanges = function (callback) {
|
|
|
+ let params = {
|
|
|
+ funcNo: '3052062',
|
|
|
+ i_page: '1',
|
|
|
+ i_perpage: '20',
|
|
|
+ i_label: '35'
|
|
|
+ }
|
|
|
+ http.request('GET', params, res => {
|
|
|
+ // console.log(res)
|
|
|
+ // console.log(res.data.results)
|
|
|
+ const result = res.data.results
|
|
|
+ callback(result)
|
|
|
+ })
|
|
|
+}
|
|
|
// A股快讯利好请求
|
|
|
-
|
|
|
+let getGoodNews = function (callback) {
|
|
|
+ let params = {
|
|
|
+ funcNo: '3052062',
|
|
|
+ i_page: '1',
|
|
|
+ i_perpage: '20',
|
|
|
+ i_label: '9724'
|
|
|
+ }
|
|
|
+ http.request('GET', params, res => {
|
|
|
+ // console.log(res)
|
|
|
+ // console.log(res.data.results)
|
|
|
+ const result = res.data.results
|
|
|
+ callback(result)
|
|
|
+ })
|
|
|
+}
|
|
|
// 要闻列表请求
|
|
|
+let getImportantNews = function (callback) {
|
|
|
+ let params = {
|
|
|
+ funcNo: '3052020',
|
|
|
+ i_page: '1',
|
|
|
+ i_perpage: '20',
|
|
|
+ i_info_type: '4'
|
|
|
+ }
|
|
|
+ http.request('GET', params, res => {
|
|
|
+ // console.log(res)
|
|
|
+ // console.log(res.data.results)
|
|
|
+ const result = res.data.results
|
|
|
+ callback(result)
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
module.exports = {
|
|
|
getAll: getAll,
|
|
|
- getBigNews: getBigNews
|
|
|
+ getBigNews: getBigNews,
|
|
|
+ getChanges: getChanges,
|
|
|
+ getGoodNews: getGoodNews,
|
|
|
+ getImportantNews: getImportantNews
|
|
|
}
|