Browse Source

自主推送统计接口修改时间戳

tanghongbin 5 năm trước cách đây
mục cha
commit
c5161d1a8d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/AdminManage.py

+ 1 - 1
Controller/AdminManage.py

@@ -461,7 +461,7 @@ class AdminManage(TemplateView):
         current_day = localtime.tm_mday
 
         time_struct = [localtime.tm_year, localtime.tm_mon, current_day, 0, 0, 0, 0, 0, 0]
-        current_time = time.mktime(tuple(time_struct))
+        current_time = int(time.mktime(tuple(time_struct)))
         current_time = current_time - time.timezone - 8 * 60 * 60
         count = 0
         if level == 0: # 七天