Browse Source

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

csx 2 years ago
parent
commit
2a4472398e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      controllers/js/jsyb_controller.go

+ 3 - 1
controllers/js/jsyb_controller.go View File

@@ -660,8 +660,10 @@ func (c *JSybController) ReadCard() {
660 660
 		id_card_no := bas[1]
661 661
 		card_sn := bas[3]
662 662
 
663
+		id_card_type_int, _ := strconv.ParseInt(id_card_type, 10, 64)
664
+
663 665
 		if len(pCardInfo) > 0 && len(pBusiCardInfo) > 0 {
664
-			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)
666
+			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)
665 667
 			var dat map[string]interface{}
666 668
 			if err := json.Unmarshal([]byte(result), &dat); err == nil {
667 669
 				fmt.Println(dat)