@@ -660,8 +660,10 @@ func (c *JSybController) ReadCard() {
id_card_no := bas[1]
card_sn := bas[3]
+ id_card_type_int, _ := strconv.ParseInt(id_card_type, 10, 64)
+
if len(pCardInfo) > 0 && len(pBusiCardInfo) > 0 {
- result, _ := service.Jsyb1101A(basNumber, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, id_card_type, card_sn, "1", url, ak, pBusiCardInfo, id_card_no, cainfo)
+ result, _ := service.Jsyb1101A(basNumber, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, id_card_type_int, card_sn, "1", url, ak, pBusiCardInfo, id_card_no, cainfo)
var dat map[string]interface{}
if err := json.Unmarshal([]byte(result), &dat); err == nil {
fmt.Println(dat)