腾讯镜像查询调整

This commit is contained in:
jianzhichu
2025-12-31 15:52:57 +08:00
parent 214d1259f4
commit b9b3731bbe
5 changed files with 16 additions and 12 deletions
+1
View File
@@ -332,6 +332,7 @@ namespace dy.net.Controllers
return ApiResult.Success(Appsettings.Get("tagName"));
}
[AllowAnonymous]
[HttpGet("checktag")]
public async Task<IActionResult> CheckTag()
{
+4
View File
@@ -1,6 +1,7 @@
using dy.net.extension;
using dy.net.service;
using dy.net.utils;
using dy.sync.lib;
using Serilog;
using System.Drawing;
using System.Linq.Expressions;
@@ -258,6 +259,9 @@ namespace dy.net
// 启动定时任务
var quartzJobService = services.GetRequiredService<DouyinQuartzJobService>();
quartzJobService.InitOrReStartAllJobs(config?.Cron <= 0 ? "30" : config.Cron.ToString());
DouyinHttpHelper.GetTenImage(Appsettings.Get("tagName"));//查询镜像版本
}
// 初始化Cookie
var deploy= Appsettings.Get("deploy");
+5 -6
View File
@@ -96,11 +96,10 @@ Cookie 及 `sec_user_id` 是同步功能的核心,需严格按步骤获取,
| 镜像标签 | 架构 |
| ----------------- | -------------- |
| `beta_1.9.3` | x86_64 (amd64) |
| `arm_1.9.3` | ARM64 |
| `beta_1.9.4` | x86_64 (amd64) |
| `arm_1.9.4` | ARM64 |
### 最新镜像查看
[镜像列表](http://nas.synology2023.online:10108/api/docker/dysync/1)
### 构建命令示例
将下方命令中的「本地路径」替换为你的实际路径,终端执行即可:
@@ -115,7 +114,7 @@ docker run -d --restart=always \
-v /opt/dysync/uper:/app/uper \
-p 10101:10101 \
--name dysync2025 \
ccr.ccs.tencentyun.com/jianzhichu/dysync:beta_1.9.3
ccr.ccs.tencentyun.com/jianzhichu/dysync:beta_1.9.4
```
@@ -128,7 +127,7 @@ version: '3.8'
services:
dysync:
image: ccr.ccs.tencentyun.com/jianzhichu/dysync:beta_1.9.3
image: ccr.ccs.tencentyun.com/jianzhichu/dysync:beta_1.9.4
container_name: dysync2025 # 容器名称
restart: unless-stopped # 始终重启容器,除非容器被手动停止或Docker服务停止
ports:
+6 -6
View File
@@ -77,12 +77,6 @@
<None Include="dy.net.sln" />
</ItemGroup>
<ItemGroup>
<Reference Include="dy.sync.lib">
<HintPath>lib\dy.sync.lib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<None Update="Dockerfile">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
@@ -102,6 +96,12 @@
<Folder Include="db\" />
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<Reference Include="dy.sync.lib">
<HintPath>lib\dy.sync.lib.dll</HintPath>
</Reference>
</ItemGroup>
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<!--<Exec WorkingDirectory="$(SpaRoot)" Command="yarn install" />
Binary file not shown.