csx 4 years ago
parent
commit
4fe03b6e5f
2 changed files with 1 additions and 3 deletions
  1. 1 1
      controllers/sg/his_api_controller.go
  2. 0 2
      service/sz_his_service.go

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

@@ -97,7 +97,7 @@ func (c *HisApiController) TestGetBasBaseInfo() {
97 97
 	//	fmt.Println("readcard reload  is nil")
98 98
 	//	return
99 99
 	//}
100
-	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), IntPtr(1024), (uintptr)(unsafe.Pointer(&str1[0])), IntPtr(1024))
100
+	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&str)), IntPtr(1024), (uintptr)(unsafe.Pointer(&str1)), IntPtr(1024))
101 101
 	fmt.Println(" Add(4,5)的结果为:", ret2)
102 102
 	fmt.Println(" str:", str)
103 103
 	fmt.Println(" str1:", str1)

+ 0 - 2
service/sz_his_service.go View File

@@ -172,7 +172,6 @@ func SzybFY002(doctor string, doctor_code string, fixmedins_code string, datas [
172 172
 	str := string(respBytes)
173 173
 	return str
174 174
 }
175
-
176 175
 func SzybFY004(doctor string, doctor_code string, fixmedins_code string, dept_code string, total float64, number string, verify_code string) string {
177 176
 	// 生成输入报文
178 177
 	inputMessage := SetSZInputMessage(doctor, doctor_code, fixmedins_code, verify_code)
@@ -271,7 +270,6 @@ func SzybFY005(doctor string, doctor_code string, fixmedins_code string, dept_co
271 270
 	str := string(respBytes)
272 271
 	return str
273 272
 }
274
-
275 273
 func SzybJY002(doctor string, doctor_code string, fixmedins_code string, dept_code string, number string, verify_code string) string {
276 274
 	// 生成输入报文
277 275
 	inputMessage := SetSZInputMessage(doctor, doctor_code, fixmedins_code, verify_code)