请使用微信扫码打开
This commit is contained in:
parent
c4a886c4db
commit
f7c7dd7f11
|
@ -264,4 +264,6 @@ urlpatterns = [
|
||||||
path('companyinfo/', views.companyinfo),
|
path('companyinfo/', views.companyinfo),
|
||||||
path('rlt/',include('safesite.rlt.urls')),
|
path('rlt/',include('safesite.rlt.urls')),
|
||||||
path('mgt/',include('safesite.mgt.urls')),
|
path('mgt/',include('safesite.mgt.urls')),
|
||||||
|
|
||||||
|
path('miniprogram/<str:module>', views.miniprogram),
|
||||||
]
|
]
|
||||||
|
|
|
@ -164,6 +164,9 @@ def upfile(req):
|
||||||
|
|
||||||
# html页面
|
# html页面
|
||||||
|
|
||||||
|
def miniprogram(req):
|
||||||
|
return HttpResponse('请您使用微信扫码打开')
|
||||||
|
|
||||||
def safelist(req):
|
def safelist(req):
|
||||||
return render(req, 'safelist.html')
|
return render(req, 'safelist.html')
|
||||||
|
|
||||||
|
@ -737,8 +740,8 @@ def index(req):
|
||||||
|
|
||||||
def logout(req):
|
def logout(req):
|
||||||
if req.session.get('userid', None):
|
if req.session.get('userid', None):
|
||||||
logger.info('method: %s user: %s 登出' %
|
# logger.info('method: %s user: %s 登出' %
|
||||||
(req.method, req.session['userid']))
|
# (req.method, req.session['userid']))
|
||||||
req.session.flush()
|
req.session.flush()
|
||||||
return redirect('login')
|
return redirect('login')
|
||||||
|
|
||||||
|
@ -2782,7 +2785,7 @@ def fxhandle(req):
|
||||||
def takeSecond(elem):
|
def takeSecond(elem):
|
||||||
return elem['number']
|
return elem['number']
|
||||||
|
|
||||||
|
@apicheck_login
|
||||||
def userhandle(req):
|
def userhandle(req):
|
||||||
if req.GET.get('a') == 'adduserh':
|
if req.GET.get('a') == 'adduserh':
|
||||||
return render(req, 'abuser.html')
|
return render(req, 'abuser.html')
|
||||||
|
|
Loading…
Reference in New Issue