corp1015
This commit is contained in:
+20
-2
@@ -2,6 +2,7 @@ import requests
|
||||
import time
|
||||
from applog import logger
|
||||
import requests
|
||||
import datetime
|
||||
from ewcc2 import Sinopec_ewcc
|
||||
|
||||
|
||||
@@ -190,7 +191,24 @@ def main():
|
||||
save_param4( ewcc.tab.cookies())
|
||||
|
||||
# 查询员工拉新权益会员明细
|
||||
ewcc.query_memeber()
|
||||
#if not ewcc.is_query_member and datetime.datetime.now().hour >= 3:
|
||||
#logger.info("开始查询员工拉新权益会员明细")
|
||||
#ewcc.is_query_member=ewcc.query_memeber()
|
||||
|
||||
# 查询员工拉新权益会员明细
|
||||
if not ewcc.is_query_oil_fw_tj and datetime.datetime.now().hour >= 3:
|
||||
logger.info("开始查询油站服务号应用统计")
|
||||
ewcc.query_oil_fw_tj()
|
||||
#ewcc.is_query_oil_fw_tj=ewcc.query_oil_fw_tj()
|
||||
#continue
|
||||
|
||||
# 查询油站汇总本月累计
|
||||
if not ewcc.is_query_oil_current_month_lj and datetime.datetime.now().hour >= 3:
|
||||
logger.info("开始查询 按油站汇总本月累计")
|
||||
ewcc.query_oil_current_month_lj()
|
||||
#ewcc.is_query_oil_current_month_lj=ewcc.query_oil_current_month_lj()
|
||||
continue
|
||||
|
||||
# 获取待处理查询
|
||||
pending_queries = get_pending_queries()
|
||||
|
||||
@@ -201,7 +219,7 @@ def main():
|
||||
if ewcc.query_car_info(query['plate_number'],query['phone'],rtn_cars_info) :
|
||||
# 更新查询结果
|
||||
logger.info(f"查询结果数量: {len(rtn_cars_info)}")
|
||||
#update_query_result(query['id'], len(rtn_cars_info), rtn_cars_info)
|
||||
update_query_result(query['id'], len(rtn_cars_info), rtn_cars_info)
|
||||
|
||||
# 等待一段时间后再次检查
|
||||
wait_time = 60 # 默认等待60秒
|
||||
|
||||
Reference in New Issue
Block a user