This repository has been archived by the owner on Aug 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
KingPrimes
authored and
KingPrimes
committed
Jul 14, 2022
1 parent
ab9315b
commit 2b24162
Showing
4 changed files
with
24 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
bot-warframe/src/main/java/com/twg/bot/warframe/task/WarframeTraTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.twg.bot.warframe.task; | ||
|
||
import com.twg.bot.warframe.utils.WarframeTraUtils; | ||
import com.twg.common.core.domain.AjaxResult; | ||
import com.twg.common.utils.spring.SpringUtils; | ||
import org.springframework.scheduling.annotation.Scheduled; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class WarframeTraTask { | ||
|
||
@Scheduled(cron = "0 0 0 1/7 * ? ") | ||
//@Log(title = "WarframeTra",businessType = BusinessType.INSERT) | ||
public AjaxResult TaskUserDict() { | ||
int i = SpringUtils.getBean(WarframeTraUtils.class).getUserDict(); | ||
return AjaxResult.success("翻译更新完成,共更新:" + i + "条数据"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters