|
@@ -21,23 +21,34 @@ function getYbParams(obj) {
|
|
|
// 个人支付:psnAcctPay
|
|
|
// 现金支付:ownPayAmt
|
|
|
|
|
|
+ console.log("list ===>", list);
|
|
|
list.map((i, index) => {
|
|
|
if (i.includes("feeSumamt")) {
|
|
|
+ console.log("feeSumamt ==>", 1111);
|
|
|
let innerList = i.split(",");
|
|
|
+ console.log("innerList", innerList);
|
|
|
let value = "";
|
|
|
if (innerList[0].includes("feeSumamt")) {
|
|
|
+ console.log("innerList[1]", innerList[1]);
|
|
|
value = innerList[1];
|
|
|
} else {
|
|
|
+ console.log("list[index + 1]", list[index + 1]);
|
|
|
value = list[index + 1].split(",")[0];
|
|
|
}
|
|
|
- params.feeSumamt = value
|
|
|
- .replaceAll('"', "")
|
|
|
- .replaceAll("}", "")
|
|
|
- .replaceAll("{", "")
|
|
|
- .replaceAll("\\", "");
|
|
|
+ console.log("value ===>", value, typeof value);
|
|
|
+ value = value.replace(/\\/g, "");
|
|
|
+ value = value.replace(/\'/g, "");
|
|
|
+ value = value.replace(/\"/g, "");
|
|
|
+ value = value.replace(/\}/g, "");
|
|
|
+ value = value.replace(/\{/g, "");
|
|
|
+ console.log("newValue", value);
|
|
|
+ params.feeSumamt = value;
|
|
|
+ console.log("params.feeSumamt", params.feeSumamt);
|
|
|
}
|
|
|
|
|
|
if (i.includes("fundPay")) {
|
|
|
+ console.log("fundPay ==>", 1111);
|
|
|
+
|
|
|
let innerList = i.split(",");
|
|
|
let value = "";
|
|
|
if (innerList[0].includes("fundPay")) {
|
|
@@ -45,14 +56,18 @@ function getYbParams(obj) {
|
|
|
} else {
|
|
|
value = list[index + 1].split(",")[0];
|
|
|
}
|
|
|
- params.fundPay = value
|
|
|
- .replaceAll('"', "")
|
|
|
- .replaceAll("}", "")
|
|
|
- .replaceAll("{", "")
|
|
|
- .replaceAll("\\", "");
|
|
|
+ value = value.replace(/\\/g, "");
|
|
|
+ value = value.replace(/\'/g, "");
|
|
|
+ value = value.replace(/\"/g, "");
|
|
|
+ value = value.replace(/\}/g, "");
|
|
|
+ value = value.replace(/\{/g, "");
|
|
|
+ params.fundPay = value;
|
|
|
+ console.log("params.fundPay", params.fundPay);
|
|
|
}
|
|
|
|
|
|
if (i.includes("ownPayAmt")) {
|
|
|
+ console.log("ownPayAmt ==>", 1111);
|
|
|
+
|
|
|
let innerList = i.split(",");
|
|
|
let value = "";
|
|
|
if (innerList[0].includes("ownPayAmt")) {
|
|
@@ -60,14 +75,18 @@ function getYbParams(obj) {
|
|
|
} else {
|
|
|
value = list[index + 1].split(",")[0];
|
|
|
}
|
|
|
- params.ownPayAmt = value
|
|
|
- .replaceAll('"', "")
|
|
|
- .replaceAll("}", "")
|
|
|
- .replaceAll("{", "")
|
|
|
- .replaceAll("\\", "");
|
|
|
+ value = value.replace(/\\/g, "");
|
|
|
+ value = value.replace(/\'/g, "");
|
|
|
+ value = value.replace(/\"/g, "");
|
|
|
+ value = value.replace(/\}/g, "");
|
|
|
+ value = value.replace(/\{/g, "");
|
|
|
+ params.ownPayAmt = value;
|
|
|
+ console.log("params.ownPayAmt", params.ownPayAmt);
|
|
|
}
|
|
|
|
|
|
if (i.includes("psnAcctPay")) {
|
|
|
+ console.log("psnAcctPay ==>", 1111);
|
|
|
+
|
|
|
let innerList = i.split(",");
|
|
|
let value = "";
|
|
|
if (innerList[0].includes("psnAcctPay")) {
|
|
@@ -75,13 +94,16 @@ function getYbParams(obj) {
|
|
|
} else {
|
|
|
value = list[index + 1].split(",")[0];
|
|
|
}
|
|
|
- params.psnAcctPay = value
|
|
|
- .replaceAll('"', "")
|
|
|
- .replaceAll("}", "")
|
|
|
- .replaceAll("{", "")
|
|
|
- .replaceAll("\\", "");
|
|
|
+ value = value.replace(/\\/g, "");
|
|
|
+ value = value.replace(/\'/g, "");
|
|
|
+ value = value.replace(/\"/g, "");
|
|
|
+ value = value.replace(/\}/g, "");
|
|
|
+ value = value.replace(/\{/g, "");
|
|
|
+ params.psnAcctPay = value;
|
|
|
+ console.log("params.psnAcctPay", params.psnAcctPay);
|
|
|
}
|
|
|
});
|
|
|
+ console.log("resolve ==>", params);
|
|
|
resolve(params);
|
|
|
});
|
|
|
}
|