Browse Source

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

csx 4 years ago
parent
commit
6d2f74f5bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/sg/his_api_controller.go

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

443
 func GetBasBaseInfo() (jsonStr string, err error) {
443
 func GetBasBaseInfo() (jsonStr string, err error) {
444
 
444
 
445
 	handle := syscall.MustLoadDLL("SSCard.dll")
445
 	handle := syscall.MustLoadDLL("SSCard.dll")
446
-	add := handle.MustFindProc("ReadCardBas")
446
+	add, _ := handle.FindProc("ReadCardBas")
447
 	str := make([]byte, 1024)
447
 	str := make([]byte, 1024)
448
 	str1 := make([]byte, 1024)
448
 	str1 := make([]byte, 1024)
449
 	ret, _, _ := add.Call((uintptr)(unsafe.Pointer(&str[0])), IntPtr(1024), (uintptr)(unsafe.Pointer(&str1[0])), IntPtr(1024))
449
 	ret, _, _ := add.Call((uintptr)(unsafe.Pointer(&str[0])), IntPtr(1024), (uintptr)(unsafe.Pointer(&str1[0])), IntPtr(1024))