瀏覽代碼

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

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

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

@@ -229,13 +229,12 @@ func (c *HisApiController) GetBasBaseInfo() string {
229 229
 
230 230
 	str := make([]byte, 1024)
231 231
 	str1 := make([]byte, 1024)
232
-	ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), uintptr(1024), (uintptr)(unsafe.Pointer(&str1[0])), uintptr(1024))
232
+	ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), uintptr(1024), (uintptr)(unsafe.Pointer(&str1[0])), uintptr(1024))
233 233
 
234 234
 	fmt.Println(string(str1))
235 235
 	fmt.Println(string(str))
236 236
 
237
-	if err2 != nil {
238
-		fmt.Println("SSCard的运算结果为:", ret2)
237
+	if ret2 != nil {
239 238
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
240 239
 		return ""
241 240
 	}