Procházet zdrojové kódy

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

csx před 2 roky
rodič
revize
364f847082
1 změnil soubory, kde provedl 8 přidání a 14 odebrání
  1. 8 14
      controllers/sg/his_api_controller.go

+ 8 - 14
controllers/sg/his_api_controller.go Zobrazit soubor

@@ -85,10 +85,6 @@ func HisManagerApiRegistRouters() {
85 85
 
86 86
 	beego.Router("/api/readelecard", &HisApiController{}, "get:ReadEleCard")
87 87
 
88
-
89
-
90
-
91
-
92 88
 }
93 89
 
94 90
 func (c *HisApiController) Get9001() {
@@ -12105,7 +12101,7 @@ func (c *HisApiController) ReadEleCard() {
12105 12101
 		var token string
12106 12102
 		var res ResultTwo           //1101结果
12107 12103
 		var res10265 ResultTwo10265 //1101结果
12108
-		if status == "0" { //读卡成功
12104
+		if status == "0" {          //读卡成功
12109 12105
 			var card_info string //卡信息
12110 12106
 			var busi_card_info string
12111 12107
 			token = respJSON["data"].(map[string]interface{})["token"].(string)
@@ -12129,18 +12125,16 @@ func (c *HisApiController) ReadEleCard() {
12129 12125
 			res.Output = res10265.Output
12130 12126
 			res.InfRefmsgid = res10265.InfRefmsgid
12131 12127
 			if res.Infcode == 0 {
12132
-					c.ServeSuccessJSON(map[string]interface{}{
12133
-						"number":  token,
12134
-					})
12135
-				}
12136
-			} else {
12137
-				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeHisFailedException)
12138
-				return
12128
+				c.ServeSuccessJSON(map[string]interface{}{
12129
+					"number": token,
12130
+				})
12139 12131
 			}
12140
-		} else { //读卡失败
12132
+		} else {
12141 12133
 			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeHisFailedException)
12142 12134
 			return
12143 12135
 		}
12136
+	} else { //读卡失败
12137
+		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeHisFailedException)
12138
+		return
12144 12139
 	}
12145
-
12146 12140
 }