瀏覽代碼

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

csx 4 年之前
父節點
當前提交
6d2f74f5bd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/sg/his_api_controller.go

+ 1 - 1
controllers/sg/his_api_controller.go 查看文件

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