Bläddra i källkod

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

csx 3 år sedan
förälder
incheckning
1b84846e6c
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. 2 3
      controllers/sg/his_api_controller.go

+ 2 - 3
controllers/sg/his_api_controller.go Visa fil

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