Browse Source

Merge branch 'master' of http://121.40.40.223:3000/zizhong.wang/boniuApi

# Conflicts:
#	boniu/.eslintcache
306132416@qq.com 4 years ago
parent
commit
8090dc67d0

File diff suppressed because it is too large
+ 1 - 1
boniu/.eslintcache


+ 2 - 2
boniu/src/IndexApiList.jsx

@@ -4,7 +4,7 @@ const indexApiList = [
   {
     name: "指数基本信息",
     apiurl: _url + "index_info.html",
-    inputpara: ["method=stock_info&code=股票代码&timestamp=时间戳&sign=签名值"],
+    inputpara: ["method=index_info&code=股票代码&timestamp=时间戳&sign=签名值"],
     url: "/indexApi/indexBasicInfo",
     key: "indexBasic",
     sdk_url: _sdk + "index_info.sdk",
@@ -313,7 +313,7 @@ const indexApiList = [
     apiurl: _url + "index_recent_days.html",
     sdk_url: _sdk + "index_recent_days.sdk",
     inputpara: [
-      "method=ndex_recent_days&timestamp=时间戳&code=指数代码&sign=签名值&start_date=开始日期&traceback_days=回溯天数&order=列表正序/倒序",
+      "method=index_recent_days&timestamp=时间戳&code=指数代码&sign=签名值&start_date=开始日期&traceback_days=回溯天数&order=列表正序/倒序",
       "参数说明:回溯天数,取交易日"
     ],
     url: "/indexApi/indexBack",

+ 1 - 1
boniu/src/StocksApiList.jsx

@@ -263,7 +263,7 @@ const stockApiList = [
         {
           key: "4",
           name: "fq_price",
-          desc: "否复权",
+          desc: "否复权",
         },
         {
           key: "5",

+ 37 - 1
boniu/src/components/Overview/overview.jsx

@@ -182,12 +182,48 @@ const errColumnsData = [
       },
       {
         key: "13",
+        type: "时间/时间段输入错误",
+        code: "305",
+        message: "时间/时间段错误"
+      },
+      {
+        key: "14",
+        type: "复权码输入错误",
+        code: "306",
+        message: "复权码错误"
+      },
+      {
+        key: "15",
+        type: "code未输入,参数为空",
+        code: "307",
+        message: "code参数不能为空"
+      },
+      {
+        key: "16",
+        type: "方法名输入错误",
+        code: "308",
+        message: "方法名错误"
+      },
+      {
+        key: "17",
+        type: "order输入错误",
+        code: "309",
+        message: "order参数错误"
+      },
+      {
+        key: "18",
+        type: "traceback_days输入有误",
+        code: "310",
+        message: "traceback_days参数错误"
+      },
+      {
+        key: "19",
         type: "返回数据为空",
         code: "401",
         message: " 股票/指数数据为空"
       },
       {
-        key: "14",
+        key: "20",
         type: "服务器错误",
         code: "501",
         message: "服务器错误"