feat(cron): 添加角色配装信息刷新任务并优化神器数据同步功能

- 新增每5天执行一次的角色配装信息刷新任务
- 重构神器数据同步功能,优化数据处理和保存逻辑- 添加神器图片URL获取和上传逻辑
- 更新相关测试用例
This commit is contained in:
hxt
2025-07-17 22:05:27 +08:00
parent c36a2cb8b0
commit f8001aef5b
3 changed files with 105 additions and 22 deletions

View File

@@ -49,8 +49,8 @@ func TestSyncHeroData(t *testing.T) {
* 测试同步神器数据
*/
func TestSyncArtifactData_Success(t *testing.T) {
_ = i18n.RefreshI18n(context.Background())
sync := NewThirdPartyDataSync()
err := sync.SyncArtifactData(context.Background())
if err != nil {
t.Errorf("expected success, but got error: %v", err)