|
|
@@ -133,7 +133,7 @@ async function checkLotteryResult() {
|
|
|
if(!pksPlanListData){
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
let isConnectOk = await pingPksPlan(nowDate);
|
|
|
if(!isConnectOk){
|
|
|
return;
|
|
|
@@ -295,6 +295,7 @@ async function getPksPlanList(lotCode, date, rows=30) {
|
|
|
let cacheData = magicJS.data.read('168_PksPlanListDataCache', null);
|
|
|
if(cacheData){
|
|
|
let preDrawDate = new Date(date + ' ' + cacheData.preDrawTime);
|
|
|
+ magicJS.logger.info(`${Date.now()} , ${preDrawDate.getTime()}`);
|
|
|
if(Date.now() < preDrawDate.getTime()){
|
|
|
magicJS.logger.info('PksPlanList缓存数据');
|
|
|
return cacheData;
|
|
|
@@ -311,7 +312,7 @@ async function getPksPlanList(lotCode, date, rows=30) {
|
|
|
let result = await magicJS.http.get(myRequest).then(response => {
|
|
|
try {
|
|
|
const body = response.body;
|
|
|
- magicJS.logger.info(JSON.stringify(body));
|
|
|
+ // magicJS.logger.info(JSON.stringify(body));
|
|
|
let rspData;
|
|
|
if (typeof body === "string") {
|
|
|
return {
|
|
|
@@ -376,7 +377,7 @@ async function getPksPlanItem(lotCode) {
|
|
|
let result = await magicJS.http.get(myRequest).then(response => {
|
|
|
try {
|
|
|
const body = response.body;
|
|
|
- magicJS.logger.info(JSON.stringify(body));
|
|
|
+ // magicJS.logger.info(JSON.stringify(body));
|
|
|
let rspData;
|
|
|
if (typeof body === "string") {
|
|
|
return {
|