소스 검색

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

csx 4 년 전
부모
커밋
e4c8840975
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      controllers/sg/his_api_controller.go

+ 2 - 2
controllers/sg/his_api_controller.go 파일 보기

@@ -442,8 +442,8 @@ func (c *HisApiController) Sscard() {
442 442
 
443 443
 func GetBasBaseInfo() (jsonStr string, err error) {
444 444
 
445
-	handle := syscall.MustLoadDLL("SSCard.dll")
446
-	add, _ := handle.FindProc("ReadCardBas")
445
+	handle := syscall.NewLazyDLL("SSCard.dll")
446
+	add := handle.NewProc("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))