浏览代码

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

+ 8 - 8
controllers/dialysis_api_controller.go 查看文件

@@ -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