schangxiang@126.com
2025-05-13 9cf7b57cd6f3d56a80a5925add2d8dabee28437f
HIAWms/server/src/CMS.Plugin.HIAWms/ProjectService/HIAWmsProjectService.cs
@@ -37,7 +37,7 @@
        /// <summary>
        /// 启用授权
        /// </summary>
        public override bool AuthRequired => true;
        public override bool AuthRequired => false;
        /// <summary>
        /// Initializes a new instance of the <see cref="HIAWmsProjectService"/> class.
@@ -160,25 +160,6 @@
            // await uow.SaveChangesAsync();
            _logger.LogInformation($"ProcessAsync,Count={count}");
        }
        /// <summary>
        /// Executes the external API.
        /// </summary>
        private async Task ExecuteExternalApiAsync()
        {
            try
            {
                await _serviceProvider.GetRequiredService<IHIAWmsExternalApi>().CreateAsync(new WmsContainerCreateDto
                {
                    Name = "WmsContainer_Name",
                    Code = "WmsContainer_Code",
                });
            }
            catch (Exception e)
            {
              _logger.LogException(e);
            }
        }
    }
}