1.log change subdomain record event

2.repair install shell
This commit is contained in:
2022-11-09 19:33:02 +08:00
2 changed files with 4 additions and 4 deletions

View File

@@ -12,9 +12,9 @@ goto end
:as_admin
SET basePath=%cd%
SET serviceName=Hua.DDNS
SET displayName="Hua.DDNS Demo"
SET description="Hua.DDNS Demo"
SET servicePath="%basePath%\%serviceName%.exe"
SET displayName=%serviceName%
SET description=%serviceName%
SET servicePath="%basePath%\Hua.DDNS.exe"
ECHO %servicePath%
net stop %serviceName%
sc delete %serviceName%

View File

@@ -115,7 +115,6 @@ namespace Hua.DDNS.Jobs
foreach (var aliDomainRecord in aliDescribeRecordList
.Where(m => m.Value != CurrentIpv4Address && _domainOption.subDomainArray.Any(n => m.RR == n)))
{
await aliClient.UpdateDomainRecordAsync(new UpdateDomainRecordRequest()
{
RecordId = aliDomainRecord.RecordId,
@@ -123,6 +122,7 @@ namespace Hua.DDNS.Jobs
Type = aliDomainRecord.Type,
Value = CurrentIpv4Address,
});
_logger.LogInformation($"更新域名解析记录{aliDomainRecord.Value} To {CurrentIpv4Address}");
}
break;
}