Browse Source

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

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

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

@@ -636,7 +636,7 @@ func (c *JSybController) ReadCard() {
636 636
 	mdtrtarea_admvs := c.GetString("mdtrtarea_admvs")
637 637
 	url := c.GetString("url")
638 638
 	cainfo := c.GetString("cainfo")
639
-	id_card_type, _ := c.GetInt64("id_card_type")
639
+	id_card_type := c.GetString("id_card_type")
640 640
 	operator_id := c.GetString("operator_id")
641 641
 	operator := c.GetString("operator")
642 642
 
@@ -647,7 +647,7 @@ func (c *JSybController) ReadCard() {
647 647
 	c.TestGetBasBaseInit(fixmedins_code, secret_key, ak)
648 648
 	fmt.Println(id_card_type)
649 649
 	switch id_card_type {
650
-	case 1:
650
+	case "1":
651 651
 		pCardInfo, pBusiCardInfo := c.GetBasBaseInfo()
652 652
 		pBusiCardInfo = Remove0000(pBusiCardInfo)
653 653
 		pCardInfo = Remove0000(pCardInfo)
@@ -682,7 +682,7 @@ func (c *JSybController) ReadCard() {
682 682
 
683 683
 		}
684 684
 		break
685
-	case 3: //电子凭证
685
+	case "3": //电子凭证
686 686
 		pCardInfo, pBusiCardInfo := c.GetELeInfo(fixmedins_code, operator_id, operator)
687 687
 		fmt.Println(pCardInfo)
688 688
 		fmt.Println(pBusiCardInfo)