modify apple inventory monitor schedule

This commit is contained in:
JiyangTang 2023-10-13 18:15:55 +08:00
parent e1b705d9b0
commit 36067dcc95

View File

@ -45,6 +45,9 @@ public class AppleInventorySchedule {
@Value("${baogutang.apple.location:'上海 上海 闵行区'}")
private String location;
@Value("${baogutang.apple.switch:true}")
private Boolean appleInventoryMonitorSwitch;
// @Value("${baogutang.apple.storeList}")
private List<String> storeList = new ArrayList<>();
@ -55,6 +58,10 @@ public class AppleInventorySchedule {
@Scheduled(cron = "0 0/5 * * * ? ")
public void appleInventoryMonitor() {
if (!Boolean.TRUE.equals(appleInventoryMonitorSwitch)) {
log.info(">>>>>>>>>>apple inventory monitor switch closed!<<<<<<<<<<");
return;
}
// 获取设备信息
List<IphoneProductDto> products = iphoneProductParserUtils.getProducts(deviceCode, countryCode);
//监视机型型号