Преглед изворни кода

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

csx пре 4 година
родитељ
комит
670b347791
2 измењених фајлова са 12 додато и 8 уклоњено
  1. 4 0
      conf/app.conf
  2. 8 8
      controllers/dialysis_api_controller.go

+ 4 - 0
conf/app.conf Прегледај датотеку

149
 readmysqluser = root
149
 readmysqluser = root
150
 readmysqlpass = 1Q2W3e4r!@#$
150
 readmysqlpass = 1Q2W3e4r!@#$
151
 readmysqlname = test_xt
151
 readmysqlname = test_xt
152
+//readmysqlname = sgj_xt
152
 
153
 
153
 writemysqlhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
154
 writemysqlhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
154
 writemysqlport = 3306
155
 writemysqlport = 3306
155
 writemysqluser = root
156
 writemysqluser = root
156
 writemysqlpass = 1Q2W3e4r!@#$
157
 writemysqlpass = 1Q2W3e4r!@#$
157
 writemysqlname = test_xt
158
 writemysqlname = test_xt
159
+//writemysqlname = sgj_xt
158
 
160
 
159
 readuserhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
161
 readuserhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
160
 readuserport = 3306
162
 readuserport = 3306
161
 readuseruser = root
163
 readuseruser = root
162
 readuserpass = 1Q2W3e4r!@#$
164
 readuserpass = 1Q2W3e4r!@#$
163
 readusername = test_users
165
 readusername = test_users
166
+//readusername = sgj_users
164
 
167
 
165
 writeuserhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
168
 writeuserhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
166
 writeuserport = 3306
169
 writeuserport = 3306
167
 writeuseruser = root
170
 writeuseruser = root
168
 writeuserpass = 1Q2W3e4r!@#$
171
 writeuserpass = 1Q2W3e4r!@#$
169
 writeusername = test_users
172
 writeusername = test_users
173
+//writeusername = sgj_users
170
 
174
 
171
 
175
 
172
 readmiddlehost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
176
 readmiddlehost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com

+ 8 - 8
controllers/dialysis_api_controller.go Прегледај датотеку

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