modify
This commit is contained in:
parent
53f5735749
commit
e7cfd87c79
@ -56,7 +56,7 @@ public class AppleInventorySchedule {
|
||||
@Resource
|
||||
private DingTalkMsgPushUtils dingTalkMsgPushUtils;
|
||||
|
||||
@Scheduled(cron = "0 0/10 * * * ? ")
|
||||
@Scheduled(cron = "0 0/30 * * * ? ")
|
||||
public void appleInventoryMonitor() {
|
||||
if (!Boolean.TRUE.equals(appleInventoryMonitorSwitch)) {
|
||||
log.info(">>>>>>>>>>apple inventory monitor switch closed!<<<<<<<<<<");
|
||||
@ -96,6 +96,7 @@ public class AppleInventorySchedule {
|
||||
return;
|
||||
}
|
||||
JSONObject responseJsonObject = JSON.parseObject(httpResponse.body());
|
||||
// log.info(">>>>>>>>>>query apple inventory response:{}<<<<<<<<<<", responseJsonObject);
|
||||
JSONObject pickupMessage = responseJsonObject.getJSONObject("body").getJSONObject("content").getJSONObject("pickupMessage");
|
||||
JSONArray stores = pickupMessage.getJSONArray("stores");
|
||||
if (stores == null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user