|
@ -86,6 +86,12 @@ public class GuahaoService {
|
|
|
|
|
|
@Value("${zyapi.openCrypto}")
|
|
@Value("${zyapi.openCrypto}")
|
|
private Boolean openCrypto;
|
|
private Boolean openCrypto;
|
|
|
|
|
|
|
|
@Value("${imm.url}")
|
|
|
|
private String immUrl;
|
|
|
|
|
|
|
|
@Value("${imm.credential}")
|
|
|
|
private String immcredential;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 解析挂号后
|
|
* 解析挂号后
|
|
@ -1183,7 +1189,7 @@ public class GuahaoService {
|
|
CryptoKey key = api.buildCryptoKey();
|
|
CryptoKey key = api.buildCryptoKey();
|
|
if(!params.containsKey("Credential")&&!params.containsKey("Key")) {
|
|
if(!params.containsKey("Credential")&&!params.containsKey("Key")) {
|
|
//strCredential和strKey设置
|
|
//strCredential和strKey设置
|
|
params.put("Credential", api.encodeParam(key,"<root><org code=\"jtqy\" /><visitor type=\"0\" code=\"jtqy\" key=\"jtqy\" /></root>"));
|
|
|
|
|
|
params.put("Credential", api.encodeParam(key,immcredential));
|
|
params.put("Key", key.getKey());
|
|
params.put("Key", key.getKey());
|
|
}
|
|
}
|
|
|
|
|
|
@ -1196,7 +1202,8 @@ public class GuahaoService {
|
|
|
|
|
|
int times = 0;
|
|
int times = 0;
|
|
try {
|
|
try {
|
|
re = api.post("jhmy/"+apistr, params, null,false);
|
|
|
|
|
|
// re = api.post("jhmy/"+apistr, params, null,false);
|
|
|
|
re = api.post(immUrl+"/"+apistr, params, null,false);
|
|
|
|
|
|
//---结果验证,并保存日志 ---START
|
|
//---结果验证,并保存日志 ---START
|
|
if (StringUtils.isEmpty(re)) {
|
|
if (StringUtils.isEmpty(re)) {
|
|
@ -1314,7 +1321,7 @@ public class GuahaoService {
|
|
ZysoftApi api = ZysoftApi.getSingleton();
|
|
ZysoftApi api = ZysoftApi.getSingleton();
|
|
CryptoKey key = api.buildCryptoKey();
|
|
CryptoKey key = api.buildCryptoKey();
|
|
params.put("Condition", api.encodeParam(key,condition));
|
|
params.put("Condition", api.encodeParam(key,condition));
|
|
params.put("Credential", api.encodeParam(key,"<root><org code=\"jtqy\" /><visitor type=\"0\" code=\"jtqy\" key=\"jtqy\" /></root>"));
|
|
|
|
|
|
params.put("Credential", api.encodeParam(key,immcredential));
|
|
params.put("Key", key.getKey());
|
|
params.put("Key", key.getKey());
|
|
return immPostSecond("GetOrgImmuneList","计免预约-获取免疫接种机构列表",params);
|
|
return immPostSecond("GetOrgImmuneList","计免预约-获取免疫接种机构列表",params);
|
|
}
|
|
}
|