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
 	//	fmt.Println("readcard reload  is nil")
97
 	//	fmt.Println("readcard reload  is nil")
98
 	//	return
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
 	fmt.Println(" Add(4,5)的结果为:", ret2)
101
 	fmt.Println(" Add(4,5)的结果为:", ret2)
102
 	fmt.Println(" str:", str)
102
 	fmt.Println(" str:", str)
103
 	fmt.Println(" str1:", str1)
103
 	fmt.Println(" str1:", str1)

+ 0 - 2
service/sz_his_service.go View File

172
 	str := string(respBytes)
172
 	str := string(respBytes)
173
 	return str
173
 	return str
174
 }
174
 }
175
-
176
 func SzybFY004(doctor string, doctor_code string, fixmedins_code string, dept_code string, total float64, number string, verify_code string) string {
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
 	inputMessage := SetSZInputMessage(doctor, doctor_code, fixmedins_code, verify_code)
177
 	inputMessage := SetSZInputMessage(doctor, doctor_code, fixmedins_code, verify_code)
271
 	str := string(respBytes)
270
 	str := string(respBytes)
272
 	return str
271
 	return str
273
 }
272
 }
274
-
275
 func SzybJY002(doctor string, doctor_code string, fixmedins_code string, dept_code string, number string, verify_code string) string {
273
 func SzybJY002(doctor string, doctor_code string, fixmedins_code string, dept_code string, number string, verify_code string) string {
276
 	// 生成输入报文
274
 	// 生成输入报文
277
 	inputMessage := SetSZInputMessage(doctor, doctor_code, fixmedins_code, verify_code)
275
 	inputMessage := SetSZInputMessage(doctor, doctor_code, fixmedins_code, verify_code)