Browse Source

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

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

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

@@ -482,10 +482,10 @@ func (c *JSybController) ReadCard() {
482 482
 	pBusiCardInfo = Remove0000(pBusiCardInfo)
483 483
 	fmt.Println(pBusiCardInfo)
484 484
 	bas := strings.Split(pCardInfo, "|")
485
-	basNumber := bas[2]
485
+	basNumber := bas[1]
486 486
 	card_sn := bas[3]
487 487
 	if len(pCardInfo) > 0 && len(pBusiCardInfo) > 0 {
488
-		result, _ := service.Jsyb1101A(basNumber, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, 1, card_sn, "1", url, ak, pBusiCardInfo)
488
+		result, _ := service.Jsyb1101A(basNumber, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, 2, card_sn, "1", url, ak, pBusiCardInfo)
489 489
 		fmt.Println(result)
490 490
 		c.ServeSuccessJSON(map[string]interface{}{
491 491
 			"status":         "0",