瀏覽代碼

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))