餐饮CPS高并发架构设计与分佣结算优化实践
2026/11/3 18:00:00
function trimObjectStrings(obj) { Object.keys(obj).map(key => { if (typeof obj[key] === 'string') { obj[key] = obj[key].trim(); } else if (typeof obj[key] === 'object' && obj[key] !== null) { trimObjectStrings(obj[key]); } } return obj; }