Parcourir la source

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

csx il y a 1 an
Parent
révision
c2c89e3a45
3 fichiers modifiés avec 7 ajouts et 10 suppressions
  1. 2 2
      conf/app.conf
  2. 1 4
      controllers/sg/his_api_controller.go
  3. 4 4
      service/gdyb_service.go

+ 2 - 2
conf/app.conf Voir le fichier

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10217
48
+org_id = 10138
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com
@@ -67,7 +67,7 @@ gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
67 67
 #珠海
68 68
 # gdyb_paasid="zh_prd_yrojyy"
69 69
 #深圳
70
-#gdyb_paasid = "sz_prd_yjyy"
70
+gdyb_paasid = "sz_prd_yjyy"
71 71
 #肇庆
72 72
 # gdyb_paasid = "zq_prd_yjyy"
73 73
 # gdyb_paasid = "sztest_hosp"

+ 1 - 4
controllers/sg/his_api_controller.go Voir le fichier

@@ -91,10 +91,7 @@ func (c *HisApiController) Get9001() {
91 91
 	roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, 185)
92 92
 
93 93
 	if miConfig.MdtrtareaAdmvs == "350500" {
94
-		fmt.Println("350500")
95
-
96 94
 		service.GetFjAuthorizationInfo(miConfig.Code)
97
-
98 95
 	} else {
99 96
 		result, _ := service.Gdyb9001(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, 1669)
100 97
 
@@ -1939,7 +1936,7 @@ func (c *HisApiController) ReadCard() {
1939 1936
 				return
1940 1937
 			}
1941 1938
 		} else if miConfig.MdtrtareaAdmvs == "440300" || miConfig.MdtrtareaAdmvs == "440305" {
1942
-
1939
+			service.Gdyb1101ForEleCert(miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey)
1943 1940
 		}
1944 1941
 		break
1945 1942
 	}

+ 4 - 4
service/gdyb_service.go Voir le fichier

@@ -3829,7 +3829,7 @@ func Gdyb1101G(certNo string, org_name string, doctor string, fixmedins_code str
3829 3829
 	return str
3830 3830
 }
3831 3831
 
3832
-func Gdyb1101ForEleCert(certNo string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, token string, name string) string {
3832
+func Gdyb1101ForEleCert(org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string) string {
3833 3833
 	//生成签名
3834 3834
 	nonce := GetRandomString(32)
3835 3835
 	timestamp := time.Now().Unix()
@@ -3845,9 +3845,9 @@ func Gdyb1101ForEleCert(certNo string, org_name string, doctor string, fixmedins
3845 3845
 	inputData["certno"] = ""            // 证件号码
3846 3846
 	inputData["psn_cert_type"] = "01"   // 人员证件类型
3847 3847
 
3848
-	inputData["mdtrt_cert_no"] = token // 就诊凭证编号
3849
-	inputData["begntime"] = ""         // 开始时间
3850
-	inputData["psn_name"] = name       // 人员姓名
3848
+	inputData["mdtrt_cert_no"] = "" // 就诊凭证编号
3849
+	inputData["begntime"] = ""      // 开始时间
3850
+	inputData["psn_name"] = ""      // 人员姓名
3851 3851
 	input["data"] = inputData
3852 3852
 	inputMessage["input"] = input //交易输入
3853 3853