fix: UDM签约数据sst-sd格式无sd也带-

This commit is contained in:
TsMask committed 2024-04-28 11:46:30 +08:00
1 parent ff228daae7
commit 6e616c63f0
1 file changed
+3 -1
+3 -1
View File
@@ -501,7 +501,9 @@ function transformData(data: any) {
throw new Error('sst, sd, and all dnn are required fields'); throw new Error('sst, sd, and all dnn are required fields');
} }
let sstSd = item.sd ? item.sst + '-' + item.sd.padStart(6, '0') : item.sst; let sstSd = item.sd
? item.sst + '-' + item.sd.padStart(6, '0')
: item.sst + '-';
let smallRowData = item.smallRows let smallRowData = item.smallRows
.map((smallRow: any) => { .map((smallRow: any) => {
let parts = [smallRow.dnn]; let parts = [smallRow.dnn];