from official.logic import reserve_ticket_logic as logic from common import util def get_prod_info(request): """ 获取门票产品信息 :param request: :return: """ prod_id = request.POST.get('prod_id', '') # 产品ID get_info = logic.get_prod_info(prod_id) # 获取产品信息 return util.re_json(get_info) def get_stock(request): """ 获取票种信息 :param request: :return: """ prod_id = request.POST.get('prod_id', '') # 产品ID date = request.POST.get('date', '') # 产品ID get_info = logic.get_stock(prod_id, date) # 获取票种信息 return util.re_json(get_info)