fix: 解决空指针异常问题

This commit is contained in:
zheng.zhang
2025-12-24 13:38:12 +08:00
parent aa437893db
commit 2fb0bdacf4
@@ -273,7 +273,7 @@ namespace YLErp.Web.Controllers
var result = new XBondSpread() { bid = 0, ofr = 0 };
try
{
result = new XBondSpreadService().GetXBondSpread(_yLCache);
result = new XBondSpreadService().GetXBondSpread(_yLCache) ?? new XBondSpread() { bid = 0, ofr = 0 };
}
catch(Exception)
{