modify apple inventory monitor schedule
This commit is contained in:
parent
e1b705d9b0
commit
36067dcc95
@ -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);
|
||||
//监视机型型号
|
||||
|
||||
Loading…
Reference in New Issue
Block a user