fix: 解决空指针异常问题
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user