Browse Source

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

csx 2 years ago
parent
commit
36515e7fd2
1 changed files with 26 additions and 14 deletions
  1. 26 14
      controllers/zh/zh_his_api_controller.go

+ 26 - 14
controllers/zh/zh_his_api_controller.go View File

@@ -28,6 +28,18 @@ import (
28 28
 type ZHHisApiController struct {
29 29
 	controllers.BaseAuthAPIController
30 30
 }
31
+type ResultSix struct {
32
+	Cainfo      interface{} `json:"cainfo"`
33
+	ErrMsg      string      `json:"err_msg"`
34
+	InfRefmsgid string      `json:"inf_refmsgid"`
35
+	Infcode     int64       `json:"infcode"`
36
+	Output      struct {
37
+	} `json:"output"`
38
+	RefmsgTime  string      `json:"refmsg_time"`
39
+	RespondTime string      `json:"respond_time"`
40
+	Signtype    interface{} `json:"signtype"`
41
+	WarnMsg     interface{} `json:"warn_msg"`
42
+}
31 43
 
32 44
 type ResultTwo struct {
33 45
 	ErrMsg      string `json:"err_msg"`
@@ -508,21 +520,21 @@ func (c *ZHHisApiController) ClearSettle() {
508 520
 
509 521
 		userJSONBytes, _ := json.Marshal(dat)
510 522
 
511
-		var res ResultSixteen
512
-		var resSixteen ResultSixteen10265
523
+		var res ResultSix
524
+		//var resSixteen ResultSixteen10265
513 525
 		if miConfig.Code == "H15049901371" {
514
-			if err := json.Unmarshal(userJSONBytes, &resSixteen); err != nil {
515
-				utils.ErrorLog("解析失败:%v", err)
516
-				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
517
-				return
518
-			}
519
-			res.Cainfo = resSixteen.Cainfo
520
-			res.WarnMsg = resSixteen.WarnMsg
521
-			res.Output = resSixteen.Output
522
-			res.ErrMsg = resSixteen.ErrMsg
523
-			res.RespondTime = resSixteen.RespondTime
524
-			Infcode, _ := strconv.ParseInt(resSixteen.Infcode, 10, 64)
525
-			res.Infcode = Infcode
526
+			//if err := json.Unmarshal(userJSONBytes, &resSixteen); err != nil {
527
+			//	utils.ErrorLog("解析失败:%v", err)
528
+			//	c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
529
+			//	return
530
+			//}
531
+			//res.Cainfo = resSixteen.Cainfo
532
+			//res.WarnMsg = resSixteen.WarnMsg
533
+			//res.Output = resSixteen.Output
534
+			//res.ErrMsg = resSixteen.ErrMsg
535
+			//res.RespondTime = resSixteen.RespondTime
536
+			//Infcode, _ := strconv.ParseInt(resSixteen.Infcode, 10, 64)
537
+			//res.Infcode = Infcode
526 538
 
527 539
 		} else {
528 540