|
@@ -59,7 +59,7 @@ class PayCalculate {
|
|
|
for (const op of orderParam) {
|
|
|
const order = parseInt(op.substring(1, op.length));
|
|
|
const orderPay = pays.find(x => { return x.order === order });
|
|
|
- formula = formula.replace(op, orderPay.tp || 0);
|
|
|
+ formula = formula.replace(op, orderPay && orderPay.tp || 0);
|
|
|
}
|
|
|
}
|
|
|
for (const b of this.bases) {
|