def phone_page(request):
template_name = 'wechat/parent/reg_phone.html'
teacherId = request.GET.get('state') # ??, ??, ??
openid = request.GET.get("openid")
if not openid:
openid = request.POST.get("openid")
nextpage = _get_reg_next_page(teacherId, openid)
parent = _get_parent(request)
if parent:
return HttpResponseRedirect(nextpage)
if not openid and settings.TESTING:
# the below line is real wx_openid, but not related with ours server
openid = 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o'
context = {
"openid": openid,
"teacherId": teacherId,
"nextpage": nextpage
}
return render(request, template_name, context)
评论列表
文章目录