Browse Source

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

csx 3 years ago
parent
commit
7c6f84c66b
1 changed files with 7 additions and 7 deletions
  1. 7 7
      controllers/sg/his_api_controller.go

+ 7 - 7
controllers/sg/his_api_controller.go View File

@@ -1127,16 +1127,16 @@ func (c *HisApiController) GetRegisterInfo() {
1127 1127
 						service.CreateErrMsgLog(errlog)
1128 1128
 						c.ServeSuccessJSON(map[string]interface{}{
1129 1129
 							"failed_code": -10,
1130
-							"msg":         res.ErrMsg,
1130
+							"msg":         res2.ErrMsg,
1131 1131
 						})
1132 1132
 						return
1133
-						//c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeRegisterThreeException)
1134
-						//return
1135
-					}
1136 1133
 
1137
-					c.ServeSuccessJSON(map[string]interface{}{
1138
-						"his_info": his,
1139
-					})
1134
+					} else {
1135
+
1136
+						c.ServeSuccessJSON(map[string]interface{}{
1137
+							"his_info": his,
1138
+						})
1139
+					}
1140 1140
 
1141 1141
 				} else {
1142 1142
 					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)