|
@ -525,37 +525,36 @@ function autho() {
|
525
|
525
|
|
526
|
526
|
|
527
|
527
|
//获取用户类型
|
528
|
|
if ($.cookie('userName') && $.cookie('userName') != "null" && $.cookie('userName') != null) {
|
529
|
|
var ifuser = ifUserType();
|
530
|
|
function ifUserType(pa){
|
531
|
|
if(pa) {
|
532
|
|
var useridtype =pa;
|
533
|
|
}else{
|
534
|
|
var useridtype = $.cookie('userid');
|
535
|
|
}
|
536
|
|
|
537
|
|
var authType2,authentication2;
|
538
|
|
if (useridtype && useridtype != "null" && useridtype != null) {
|
539
|
|
$.ajax({
|
540
|
|
"url" :"/ajax/professor/auth",
|
541
|
|
"type" : "GET",
|
542
|
|
"data" :{"id":useridtype} ,
|
543
|
|
"dataType" : "json",
|
544
|
|
"async":false,
|
545
|
|
"success" : function(data) {
|
546
|
|
if(data.success){
|
547
|
|
authType2 = data.data.authType;
|
548
|
|
authentication2 = data.data.authentication;
|
549
|
|
}
|
|
528
|
|
|
529
|
var ifuser = ifUserType();
|
|
530
|
function ifUserType(pa){
|
|
531
|
if(pa) {
|
|
532
|
var useridtype =pa;
|
|
533
|
}else{
|
|
534
|
var useridtype = $.cookie('userid');
|
|
535
|
}
|
|
536
|
var authType2,authentication2;
|
|
537
|
if (useridtype && useridtype != "null" && useridtype != null) {
|
|
538
|
$.ajax({
|
|
539
|
"url" :"/ajax/professor/auth",
|
|
540
|
"type" : "GET",
|
|
541
|
"data" :{"id":useridtype} ,
|
|
542
|
"dataType" : "json",
|
|
543
|
"async":false,
|
|
544
|
"success" : function(data) {
|
|
545
|
if(data.success){
|
|
546
|
authType2 = data.data.authType;
|
|
547
|
authentication2 = data.data.authentication;
|
550
|
548
|
}
|
551
|
|
});
|
552
|
|
}
|
553
|
|
return{
|
554
|
|
"authType2":authType2,
|
555
|
|
"authentication2":authentication2,
|
556
|
|
}
|
|
549
|
}
|
|
550
|
});
|
557
|
551
|
}
|
|
552
|
return{
|
|
553
|
"authType2":authType2,
|
|
554
|
"authentication2":authentication2,
|
|
555
|
}
|
558
|
556
|
}
|
|
557
|
|
559
|
558
|
//工作台判断用户类型显示用户权限
|
560
|
559
|
if ($.cookie('userName') && $.cookie('userName') != "null" && $.cookie('userName') != null) {
|
561
|
560
|
if(ifuser.authType2==0){
|