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

This commit is contained in:
TsMask
2024-04-28 11:46:30 +08:00
parent ff228daae7
commit 6e616c63f0

View File

@@ -501,7 +501,9 @@ function transformData(data: any) {
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
.map((smallRow: any) => {
let parts = [smallRow.dnn];