feat: 主要修复订单 save 逻辑 #46

Merged
longbot merged 6 commits from zksu/API:main into main 2026-01-10 07:18:26 +00:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit ecdedcc041 - Show all commits

View File

@ -1537,6 +1537,7 @@ export class ProductService {
return dto; return dto;
} }
getAttributesObject(attributes:DictItem[]){ getAttributesObject(attributes:DictItem[]){
if(!attributes) return {}
const obj:any = {} const obj:any = {}
attributes.forEach(attr=>{ attributes.forEach(attr=>{
obj[attr.dict.name] = attr obj[attr.dict.name] = attr