libf 2 years ago
parent
commit
aa9ebec908
1 changed files with 4 additions and 4 deletions
  1. 4 4
      cncc_serverjs/script/cncc/API/drsp/perf.js

+ 4 - 4
cncc_serverjs/script/cncc/API/drsp/perf.js

@@ -44,8 +44,8 @@ try {
 {"kpi_key":"kpi.HVPS.FailCount","timestamp":1669087680,"value":0}                           大额失败笔数
 
 */
-function getDataFromOmdb(type, tms, tme) {
-
+function getDataFromOmdb(ftype, tms, tme) {
+    var type = ftype = "FXPS" ? "FXCC" : ftype
     var data = [];
     var kpiDef = [
         { "kpi_key": "kpi.IBPS.101.sendnode-recvnode-ratio", title: "网银应答率", "name": "RR" },
@@ -72,7 +72,7 @@ function getDataFromOmdb(type, tms, tme) {
 
     if (!kpiGroup[type]) return [];
 
-    var kpiObj = { "RR": 100, "RS": 100, "RV": 0, "RD": 0, "FV": 0 };
+    var kpiObj = { "RR": 1, "RS": 1, "RV": 0, "RD": 0, "FV": 0 };
 
     kpiGroup[type].forEach(function (v) {
 
@@ -127,7 +127,7 @@ function getData(type, tms, tme) {
             }
             return data
         }
-        throw(e)
+        throw (e)
     }
 };