Merge branch 'dev' of https://git.tuotong-tech.com/tnb/tnb.server into dev
This commit is contained in:
@@ -3,6 +3,7 @@ using JNPF.Common.Enums;
|
|||||||
using JNPF.DependencyInjection;
|
using JNPF.DependencyInjection;
|
||||||
using JNPF.DynamicApiController;
|
using JNPF.DynamicApiController;
|
||||||
using JNPF.FriendlyException;
|
using JNPF.FriendlyException;
|
||||||
|
using JNPF.Logging;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
using Tnb.EquipMgr.Entities;
|
using Tnb.EquipMgr.Entities;
|
||||||
@@ -141,7 +142,12 @@ namespace Tnb.PerMgr
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
if (!result.IsSuccess) throw Oops.Oh(ErrorCode.COM1008);
|
if (!result.IsSuccess)
|
||||||
|
{
|
||||||
|
Log.Error(result.ErrorMessage);
|
||||||
|
throw Oops.Oh(result.ErrorMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return result.IsSuccess ? "保存成功" : result.ErrorMessage;
|
return result.IsSuccess ? "保存成功" : result.ErrorMessage;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user