[Update] 修改组织获取优先级

pull/3836/head
ibuler 2020-03-23 10:52:26 +08:00
parent 9bf5d6dd45
commit dffd05cd20
1 changed files with 2 additions and 3 deletions

View File

@ -11,10 +11,9 @@ from .models import Organization
def get_org_from_request(request):
oid = request.session.get("oid")
oid = request.META.get("HTTP_X_JMS_ORG")
if not oid:
oid = request.META.get("HTTP_X_JMS_ORG")
oid = request.session.get("oid")
request_params_oid = request.GET.get("oid")
if request_params_oid:
oid = request.GET.get("oid")