|
|
@@ -139,11 +139,8 @@ public class AssetController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/mint")
|
|
|
- public String mint(@RequestParam(required = false) LocalDateTime time) {
|
|
|
- if (time == null) {
|
|
|
- time = LocalDateTime.now();
|
|
|
- }
|
|
|
- for (Asset asset : assetRepo.toMint(time)) {
|
|
|
+ public String mint() {
|
|
|
+ for (Asset asset : assetRepo.toMint(LocalDateTime.now())) {
|
|
|
rocketMQTemplate.syncSend(generalProperties.getMintTopic(), asset.getId());
|
|
|
}
|
|
|
return "ok";
|