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