Explorar el Código

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

csx hace 2 años
padre
commit
e6a39784ee
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      service/fj_service.go

+ 2 - 1
service/fj_service.go Ver fichero

@@ -140,7 +140,8 @@ func FJyb2201(psnNo string, insutype string, certNo string, org_name string, doc
140 140
 		return err.Error(), ""
141 141
 	}
142 142
 
143
-	output, err_msg := GetFjBusinessHandleInfo([]byte(ConvertByte2String(bytesData, GB18030)))
143
+	enc := mahonia.NewEncoder("gbk")
144
+	output, err_msg := GetFjBusinessHandleInfo([]byte(enc.ConvertString(string(bytesData))))
144 145
 	fmt.Println("输出信息:")
145 146
 	fmt.Println(output)
146 147
 	fmt.Println("错误信息:")