xgj.py 608 B

1234567891011121314151617181920
  1. # coding=utf-8
  2. from django.db import transaction
  3. from rest_framework.views import APIView
  4. from rest_framework.decorators import action
  5. from rest_framework import generics
  6. from utils import response_ok
  7. from apps.account import tenant_log
  8. from apps.foundation.models import BizLog, Config
  9. from rest_framework.exceptions import NotFound
  10. class XGJ():
  11. @staticmethod
  12. def drive_reserve(instance): #试驾预约单
  13. xgj_ip = Config.getConfigValue(Config.KEY_XGJ_IP)
  14. xgj_session_key = Config.getConfigValue(Config.KEY_XGJ_SESSION_KEY)
  15. if xgj_ip and xgj_session_key:
  16. pass