Browse Source

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

张保健 3 years ago
parent
commit
ca813c5866
1 changed files with 9 additions and 4 deletions
  1. 9 4
      controllers/sg/his_api_controller.go

+ 9 - 4
controllers/sg/his_api_controller.go View File

@@ -72,6 +72,8 @@ func HisManagerApiRegistRouters() {
72 72
 	beego.Router("/api/reversal", &HisApiController{}, "get:ReversalData")
73 73
 	beego.Router("/api/reversal/other", &HisApiController{}, "get:ReversalOtherData")
74 74
 
75
+	//beego.Router("/api/reversal/one", &HisApiController{}, "get:ReversalOtherOneData")
76
+
75 77
 }
76 78
 
77 79
 func (c *HisApiController) TestGetBasBaseInfo() {
@@ -3016,13 +3018,16 @@ func (c *HisApiController) GetCheckAccount() {
3016 3018
 				}
3017 3019
 			} else {
3018 3020
 				c.ServeSuccessJSON(map[string]interface{}{
3019
-					"code": -10,
3020
-					"msg":  res.ErrMsg,
3021
+					"stmt_rslt":      res.Output.Stmtinfo.StmtRslt,
3022
+					"stmt_rslt_dscr": res.Output.Stmtinfo.StmtRsltDscr,
3021 3023
 				})
3022
-
3023 3024
 			}
3024 3025
 		} else {
3025
-			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
3026
+			c.ServeSuccessJSON(map[string]interface{}{
3027
+				"code": -10,
3028
+				"msg":  res.ErrMsg,
3029
+			})
3030
+
3026 3031
 		}
3027 3032
 	}
3028 3033
 }