瀏覽代碼

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

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

+ 2 - 0
controllers/js/jsyb_controller.go 查看文件

508
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
508
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
509
 		return
509
 		return
510
 	}
510
 	}
511
+	fmt.Println("SSCard的返回结果为:", string(str))
511
 
512
 
512
 	result := int(ret)
513
 	result := int(ret)
513
 	fmt.Println("SSCard的运算结果为1:", result)
514
 	fmt.Println("SSCard的运算结果为1:", result)
521
 		fmt.Println("readcard is nil")
522
 		fmt.Println("readcard is nil")
522
 		readCard = DllDef.MustFindProc("ReadCardBas")
523
 		readCard = DllDef.MustFindProc("ReadCardBas")
523
 	}
524
 	}
525
+	fmt.Println("!!!!!")
524
 	str := make([]byte, 2048)
526
 	str := make([]byte, 2048)
525
 	str1 := make([]byte, 8192)
527
 	str1 := make([]byte, 8192)
526
 	ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), uintptr(1024), (uintptr)(unsafe.Pointer(&str1[0])), uintptr(1024))
528
 	ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), uintptr(1024), (uintptr)(unsafe.Pointer(&str1[0])), uintptr(1024))