Browse Source

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

csx 3 years ago
parent
commit
23d6219ec2
1 changed files with 11 additions and 9 deletions
  1. 11 9
      controllers/sg/his_api_controller.go

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

91
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorPsnRecordNoExistWrong)
91
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorPsnRecordNoExistWrong)
92
 		return
92
 		return
93
 	}
93
 	}
94
-	result := service.Gdyb5301(psn_record.PsnNo, miConfig.OrgName, role.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey)
95
 
94
 
96
-	var dat map[string]interface{}
97
-	if err := json.Unmarshal([]byte(result), &dat); err == nil {
98
-		fmt.Println(dat)
99
-	} else {
100
-		fmt.Println(err)
101
-	}
102
-
103
-	userJSONBytes, _ := json.Marshal(dat)
104
 	var res Result5301
95
 	var res Result5301
105
 	var res10265 Result5301For10265
96
 	var res10265 Result5301For10265
106
 
97
 
142
 
133
 
143
 	} else {
134
 	} else {
144
 
135
 
136
+		result := service.Gdyb5301(psn_record.PsnNo, miConfig.OrgName, role.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey)
137
+
138
+		var dat map[string]interface{}
139
+		if err := json.Unmarshal([]byte(result), &dat); err == nil {
140
+			fmt.Println(dat)
141
+		} else {
142
+			fmt.Println(err)
143
+		}
144
+
145
+		userJSONBytes, _ := json.Marshal(dat)
146
+
145
 		if miConfig.Code == "H15049901371" {
147
 		if miConfig.Code == "H15049901371" {
146
 			if err := json.Unmarshal(userJSONBytes, &res10265); err != nil {
148
 			if err := json.Unmarshal(userJSONBytes, &res10265); err != nil {
147
 				utils.ErrorLog("解析失败:%v", err)
149
 				utils.ErrorLog("解析失败:%v", err)