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

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

@@ -83,7 +83,7 @@ func (c *HisApiController) TestPay() {
83 83
 	jsonStr := `
84 84
         {
85 85
                 "transId": "05",
86
-                "amount":"0.01",
86
+                "amount":"1.00",
87 87
                 "traceNo":"20210227093601325405377",
88 88
                 "cardNo":"F36084348",
89 89
                 "id":"44022919620927046X"
@@ -93,7 +93,7 @@ func (c *HisApiController) TestPay() {
93 93
 
94 94
 	//bytes_arr, _ := json.Marshal(inputData)
95 95
 	str3 := make([]byte, 256)
96
-	ret4, _, err4 := readCards.Call(jsonStr, (uintptr)(unsafe.Pointer(&str3[0])))
96
+	ret4, _, err4 := readCards.Call(StrPtr(jsonStr), (uintptr)(unsafe.Pointer(&str3[0])))
97 97
 	fmt.Println(":", string(str3))
98 98
 
99 99
 	if err4 != nil {