|
@@ -2091,10 +2091,12 @@ func Gdyb3202(baseParams models.BaseParams, businessParams models.BusinessParams
|
2091
|
2091
|
}
|
2092
|
2092
|
|
2093
|
2093
|
func Gdyb5203(baseParams models.BaseParams, businessParams models.BusinessParams) string {
|
|
2094
|
+ fmt.Println("~~~~~~1")
|
2094
|
2095
|
// 生成签名
|
2095
|
2096
|
nonce := GetRandomString(32)
|
2096
|
2097
|
timestamp := time.Now().Unix()
|
2097
|
2098
|
signature := setSignature(timestamp, nonce, baseParams.SecretKey)
|
|
2099
|
+ fmt.Println("~~~~~~2")
|
2098
|
2100
|
|
2099
|
2101
|
// 生成输入报文
|
2100
|
2102
|
inputMessage := SetInputMessageFour(nonce, timestamp, baseParams.OrgName, baseParams.Doctor, baseParams.FixmedinsCode, baseParams.InsuplcAdmdvs, baseParams.MdtrtareaAdmvs)
|
|
@@ -2108,6 +2110,9 @@ func Gdyb5203(baseParams models.BaseParams, businessParams models.BusinessParams
|
2108
|
2110
|
inputMessage["input"] = input //交易输入
|
2109
|
2111
|
bytesData, err := json.Marshal(inputMessage)
|
2110
|
2112
|
fmt.Println(string(bytesData))
|
|
2113
|
+ fmt.Println("~~~~~~")
|
|
2114
|
+ fmt.Println("~~~~~~")
|
|
2115
|
+ fmt.Println(string(bytesData))
|
2111
|
2116
|
if err != nil {
|
2112
|
2117
|
fmt.Println(err.Error())
|
2113
|
2118
|
return err.Error()
|
|
@@ -2124,11 +2129,6 @@ func Gdyb5203(baseParams models.BaseParams, businessParams models.BusinessParams
|
2124
|
2129
|
} else {
|
2125
|
2130
|
url = gdyb_url + "5203"
|
2126
|
2131
|
}
|
2127
|
|
- fmt.Println("~~~~~~")
|
2128
|
|
-
|
2129
|
|
- fmt.Println(url)
|
2130
|
|
- fmt.Println("~~~~~~")
|
2131
|
|
- fmt.Println(string(bytesData))
|
2132
|
2132
|
|
2133
|
2133
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/5203"
|
2134
|
2134
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/5203"
|