Browse Source

Merge branch 'master' of http://git.shengws.com/csx/XT_New

XMLWAN 4 years ago
parent
commit
55bd9ed8a5
1 changed files with 8 additions and 8 deletions
  1. 8 8
      controllers/dialysis_api_controller.go

+ 8 - 8
controllers/dialysis_api_controller.go View File

4981
 				funcPurviews, _ := service.FindAllFuncPurview(userRolePurviewsArr)
4981
 				funcPurviews, _ := service.FindAllFuncPurview(userRolePurviewsArr)
4982
 				for _, item := range funcPurviews {
4982
 				for _, item := range funcPurviews {
4983
 					//for _, url := range strings.Split(item.Urlfor,","){
4983
 					//for _, url := range strings.Split(item.Urlfor,","){
4984
-					if strings.Split(item.Urlfor, ",")[0] == create_url {
4984
+					if strings.Split(item.Urlfor, ",")[1] == create_url {
4985
 						is_has_create = true
4985
 						is_has_create = true
4986
 					}
4986
 					}
4987
-					if strings.Split(item.Urlfor, ",")[0] == modify_url {
4987
+					if strings.Split(item.Urlfor, ",")[1] == modify_url {
4988
 						is_has_modify = true
4988
 						is_has_modify = true
4989
 					}
4989
 					}
4990
-					if strings.Split(item.Urlfor, ",")[0] == modify_other_url {
4990
+					if strings.Split(item.Urlfor, ",")[1] == modify_other_url {
4991
 						is_has_modify_other = true
4991
 						is_has_modify_other = true
4992
 					}
4992
 					}
4993
-					if strings.Split(item.Urlfor, ",")[0] == del_url {
4993
+					if strings.Split(item.Urlfor, ",")[1] == del_url {
4994
 						is_has_del = true
4994
 						is_has_del = true
4995
 					}
4995
 					}
4996
-					if strings.Split(item.Urlfor, ",")[0] == del_other_url {
4996
+					if strings.Split(item.Urlfor, ",")[1] == del_other_url {
4997
 						is_has_del_other = true
4997
 						is_has_del_other = true
4998
 					}
4998
 					}
4999
-					if strings.Split(item.Urlfor, ",")[0] == exce_url {
4999
+					if strings.Split(item.Urlfor, ",")[1] == exce_url {
5000
 						is_has_exce = true
5000
 						is_has_exce = true
5001
 					}
5001
 					}
5002
-					if strings.Split(item.Urlfor, ",")[0] == check_url {
5002
+					if strings.Split(item.Urlfor, ",")[1] == check_url {
5003
 						is_has_check = true
5003
 						is_has_check = true
5004
 					}
5004
 					}
5005
-					if strings.Split(item.Urlfor, ",")[0] == modify_exce_url {
5005
+					if strings.Split(item.Urlfor, ",")[1] == modify_exce_url {
5006
 						is_has_modify_exce = true
5006
 						is_has_modify_exce = true
5007
 					}
5007
 					}
5008
 
5008