fix 优化可能为null情况
This commit is contained in:
@@ -214,7 +214,10 @@ public class GainfoService : IGainfoService
|
||||
if (info != null)
|
||||
{
|
||||
var tenantResult = await _tenantApi.GetTenantByCodeAsync(info.Factory);
|
||||
info.Factory = tenantResult.Data.Name;
|
||||
if (tenantResult != null && tenantResult.Data != null)
|
||||
{
|
||||
info.Factory = tenantResult.Data.Name;
|
||||
}
|
||||
}
|
||||
|
||||
return info;
|
||||
|
||||
Reference in New Issue
Block a user