def etc_fee_deduction(body: OBUModel): """ etc扣费 :param body: :return: """ body.recv_time = time.time() try: CommonConf.EXECUTOR.submit(EtcToll.etc_toll_by_thread, body) result = dict(flag=True, errorCode='', errorMessage='', data=None) except: logger.error(traceback.format_exc()) result = dict(flag=False, errorCode='01', errorMessage='etc扣费失败', data=None) return result
def etc_fee_deduction(body: OBUModel): """ etc扣费 :param body: :return: """ body.recv_time = time.time() try: logger.info( '=====================lane_num: {} 接收到扣费请求====================='. format(body.lane_num)) DBOPeration.etc_request_info_to_db(body) result = dict(flag=True, errorCode='', errorMessage='', data=None) except: logger.error(traceback.format_exc()) result = dict(flag=False, errorCode='01', errorMessage='etc扣费失败', data=None) return result