export function getLogOther(otherStr) { if (otherStr === undefined || otherStr === null || otherStr === '') { otherStr = '{}'; } let other = JSON.parse(otherStr); // 确保返回对象而不是 null(处理 JSON.parse("null") 的情况) if (other === null || typeof other !== 'object') { return {}; } return other; }