|
@@ -4,7 +4,7 @@ import feapder.utils.tools as tools
|
|
|
from feapder import BaseListItem, BaseDetailItem
|
|
|
from feapder.utils.log import log
|
|
|
from untils.check_data import CheckData
|
|
|
-from untils.tools import int2long, substitute, text_search
|
|
|
+from untils.tools import substitute, text_search
|
|
|
|
|
|
|
|
|
class DataNjpcItem(BaseDetailItem):
|
|
@@ -119,7 +119,7 @@ class DataNjpcItem(BaseDetailItem):
|
|
|
raise ValueError("发布时间格式不正确 -> %r " % self.publishtime)
|
|
|
|
|
|
# 时间字符串转时间戳
|
|
|
- self.publishtime = int2long(tools.date_to_timestamp(publishtime))
|
|
|
+ self.publishtime = tools.ensure_int64(tools.date_to_timestamp(publishtime))
|
|
|
|
|
|
def handle_publish_time_overdue(self):
|
|
|
"""超期发布时间处理"""
|
|
@@ -128,7 +128,7 @@ class DataNjpcItem(BaseDetailItem):
|
|
|
|
|
|
if self.publishtime > self.comeintime:
|
|
|
log.warning("发布时间大于当前时间,已设置当前时间为发布时间!")
|
|
|
- self.publishtime = int2long(tools.get_current_timestamp())
|
|
|
+ self.publishtime = tools.ensure_int64(tools.get_current_timestamp())
|
|
|
|
|
|
def handle_page_html(self):
|
|
|
if not self.contenthtml:
|