From 5d39e5b4e554724103bdd15e53b199d79eb6abd3 Mon Sep 17 00:00:00 2001 From: luosongbai <15272473386@163.com> Date: Wed, 31 Mar 2021 16:05:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmcalendar.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pmcalendar.php b/pmcalendar.php index ec2f261..33d8368 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -1934,8 +1934,6 @@ if ($act == 'newevent') { starttime = start; endtime = end; - console.log("11111") - $.ajax({ url: './?app=pmcalendar&act=getEvents', dataType: 'json', @@ -1947,7 +1945,10 @@ if ($act == 'newevent') { success: function (doc) { console.log(doc); callback(doc.calendarData); - // console.log(doc);\ + + // starttime + // endtime + $("#dabaonum").html("("+doc.count['打包']+")"); $("#gengxinnum").html("("+doc.count['版本更新']+")"); $("#xiufunum").html("("+doc.count['修复外网']+")"); @@ -2242,12 +2243,14 @@ if ($act == 'newevent') { var startdate = new Date(start); var startmonth = Date.parse(startdate)/1000; - // var monthEndDate = new Date(time.getFullYear(), time.getMonth() + 1, 0); - // var endmonth=Date.parse(monthEndDate)/1000;//s - // endmonth = endmonth+24*60*60 - 1 + var monthEndDate = new Date(time.getFullYear(), time.getMonth() + 1, 0); + var endmonth=Date.parse(monthEndDate)/1000;//s + endmonth = endmonth+24*60*60 - 1 // const endmonth = new Date(new Date().toLocaleDateString()).getTime() + 24 * 60 * 60 * 1000 - 1; - var endmonth = Date.parse(new Date())/1000 - endmonth = endmonth - (endmonth%86400)+57600 + + // var endmonth = Date.parse(new Date())/1000 + // endmonth = endmonth - (endmonth%86400)+57600 + // console.log(endmonth) $.ajax({ url: './?app=pmcalendar&act=getEvents', dataType: 'json',