浏览代码

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

csx 2 年前
父节点
当前提交
3a13a26c5d
共有 1 个文件被更改,包括 30 次插入30 次删除
  1. 30 30
      controllers/zh/zh_his_api_controller.go

+ 30 - 30
controllers/zh/zh_his_api_controller.go 查看文件

@@ -2534,36 +2534,36 @@ func (c *ZHHisApiController) ReadCard() {
2534 2534
 
2535 2535
 		break
2536 2536
 	case 3:
2537
-		_, pBusiCardInfo := c.GetELeInfo(miConfig.Code, strconv.FormatInt(roles.ID, 64), roles.UserName)
2538
-
2539
-		var ele ELeData
2540
-		err := json.Unmarshal([]byte(pBusiCardInfo), &ele)
2541
-		if err != nil {
2542
-			utils.ErrorLog("解析失败:%v", err)
2543
-		}
2544
-		token := ele.Data.EcToken
2545
-		if len(token) > 0 {
2546
-			result, _ := service.Gdyb1101B(org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, url, ak, token, cainfo, ele.Data.IdNo)
2547
-			var dat map[string]interface{}
2548
-			if err := json.Unmarshal([]byte(result), &dat); err == nil {
2549
-				fmt.Println(dat)
2550
-			} else {
2551
-				fmt.Println(err)
2552
-			}
2553
-			c.ServeSuccessJSON(map[string]interface{}{
2554
-				"status": "0",
2555
-				//"card_info":      pCardInfo,
2556
-				"busi_card_info": pBusiCardInfo,
2557
-				"token":          token,
2558
-				"result":         dat,
2559
-				"type":           "2",
2560
-			})
2561
-		} else {
2562
-			c.ServeSuccessJSON(map[string]interface{}{
2563
-				"status": "-1",
2564
-			})
2565
-
2566
-		}
2537
+		//_, pBusiCardInfo := c.GetELeInfo(miConfig.Code, strconv.FormatInt(roles.ID, 64), roles.UserName)
2538
+		//
2539
+		//var ele ELeData
2540
+		//err := json.Unmarshal([]byte(pBusiCardInfo), &ele)
2541
+		//if err != nil {
2542
+		//	utils.ErrorLog("解析失败:%v", err)
2543
+		//}
2544
+		//token := ele.Data.EcToken
2545
+		////if len(token) > 0 {
2546
+		////	result, _ := service.Gdyb1101B(org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, url, ak, token, cainfo, ele.Data.IdNo)
2547
+		////	var dat map[string]interface{}
2548
+		////	if err := json.Unmarshal([]byte(result), &dat); err == nil {
2549
+		////		fmt.Println(dat)
2550
+		////	} else {
2551
+		////		fmt.Println(err)
2552
+		////	}
2553
+		////	c.ServeSuccessJSON(map[string]interface{}{
2554
+		////		"status": "0",
2555
+		////		//"card_info":      pCardInfo,
2556
+		////		"busi_card_info": pBusiCardInfo,
2557
+		////		"token":          token,
2558
+		////		"result":         dat,
2559
+		////		"type":           "2",
2560
+		////	})
2561
+		////} else {
2562
+		//	c.ServeSuccessJSON(map[string]interface{}{
2563
+		//		"status": "-1",
2564
+		//	})
2565
+		//
2566
+		//}
2567 2567
 		break
2568 2568
 	}
2569 2569