|
|
@@ -388,7 +388,10 @@ const rouMaxAdjust = (events) => {
|
|
|
ouProportion = returnRate / innerOuMaxAdjust;
|
|
|
}
|
|
|
item.forEach(ior => {
|
|
|
- const { key, v, r, q } = ior;
|
|
|
+ const { key, v, r, q } = ior ?? {};
|
|
|
+ if (!key || !v) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
let proportion = 1;
|
|
|
if (key.startsWith('ior_r')) {
|
|
|
proportion = reProportion;
|
|
|
@@ -423,11 +426,11 @@ const rouMaxAdjust = (events) => {
|
|
|
|
|
|
if (innerRouSubsidyValue) {
|
|
|
if (events['ior_rac_05'] === undefined) {
|
|
|
- events['ior_mh'].s = events['ior_mh'].v;
|
|
|
+ events['ior_mh'].s = events['ior_mh']?.v ?? 0;
|
|
|
events['ior_mh'].v = fixFloat(events['ior_mh'].s + innerRouSubsidyValue, 3);
|
|
|
}
|
|
|
if (events['ior_rah_05'] === undefined) {
|
|
|
- events['ior_mc'].s = events['ior_mc'].v;
|
|
|
+ events['ior_mc'].s = events['ior_mc']?.v ?? 0;
|
|
|
events['ior_mc'].v = fixFloat(events['ior_mc'].s + innerRouSubsidyValue, 3);
|
|
|
}
|
|
|
}
|