[성현모] CPMEta 수정

This commit is contained in:
SHM
2026-02-04 15:50:57 +09:00
parent 10b11e04e9
commit 40c509ba89
3 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@
{ {
"Id": 1, "Id": 1,
"ApiName": "CPMetaWbms", "ApiName": "CPMetaWbms",
"Host": "192.168.0.126:9000" "Host": "10.188.172.194:9000"
}, },
{ {
"Id": 2, "Id": 2,

View File

@ -5,6 +5,7 @@
@using Web.Operation.Services @using Web.Operation.Services
@using Packet @using Packet
@inject ConfigService<WebClientConfig> _configService
@inject CPMetaService _cpMetaService @inject CPMetaService _cpMetaService
@inject PopupService PopupService @inject PopupService PopupService
@ -58,7 +59,7 @@
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {
ServerAddress = _cpMetaService.ApiHost;
} }
private async Task SearchByProductID() private async Task SearchByProductID()

View File

@ -12,7 +12,7 @@ namespace Web.Operation.Services
private readonly IServiceScopeFactory _scopeFactory; private readonly IServiceScopeFactory _scopeFactory;
private readonly ConfigService<WebClientConfig>? _configService; private readonly ConfigService<WebClientConfig>? _configService;
private string ApiHost = string.Empty; public string ApiHost { get; set; } = string.Empty;
public CPMetaService(IServiceProvider serviceProvider, IServiceScopeFactory scopeFactory, ConfigService<WebClientConfig> configService) public CPMetaService(IServiceProvider serviceProvider, IServiceScopeFactory scopeFactory, ConfigService<WebClientConfig> configService)
{ {