张保健 4 vuotta sitten
vanhempi
commit
ee49293531
1 muutettua tiedostoa jossa 8 lisäystä ja 8 poistoa
  1. 8 8
      controllers/dialysis_api_controller.go

+ 8 - 8
controllers/dialysis_api_controller.go Näytä tiedosto

@@ -4981,28 +4981,28 @@ func (this *DialysisApiController) GetFuncPurview() {
4981 4981
 				funcPurviews, _ := service.FindAllFuncPurview(userRolePurviewsArr)
4982 4982
 				for _, item := range funcPurviews {
4983 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 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 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 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 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 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 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 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 5006
 						is_has_modify_exce = true
5007 5007
 					}
5008 5008