修复通用接口错误
This commit is contained in:
@@ -40,7 +40,7 @@ public class VengineAppService : BaseAppService, IVengineAppService
|
||||
/// </summary>
|
||||
private async Task<Vmodel> GetVmodelAsync(string id)
|
||||
{
|
||||
if (_models.ContainsKey(id))
|
||||
if (!_models.ContainsKey(id))
|
||||
{
|
||||
_models[id] = await _dataAccess.GetVmodelAsync(id, false);
|
||||
}
|
||||
@@ -122,7 +122,7 @@ public class VengineAppService : BaseAppService, IVengineAppService
|
||||
private async Task<Vmodel> GetVmodelAsync(string areaCode, string vmCode)
|
||||
{
|
||||
var key = areaCode + "/" + vmCode;
|
||||
if (_models.ContainsKey(key))
|
||||
if (!_models.ContainsKey(key))
|
||||
{
|
||||
_models[key] = await _dataAccess.GetVmodelAsync(areaCode, vmCode, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user