阿里访问代码移动到统一访问包里

dev_drug_dm
qiuyt 4 months ago
parent abe6c3e635
commit 5145886b08

@ -46,9 +46,6 @@ import java.util.*;
@Component
public class AlihealthUtils {
@Resource
private AlihealthUtils alihealthUtils;
@Value("${ALIHEALTH_URL:http://gw.api.taobao.com/router/rest}")
private String alihealthUrl;
private AlihealthClient alihealthClient;
/**
*

@ -34,16 +34,10 @@ import java.util.Map;
@Component
@Slf4j
public class AlihealthYljgUtils {
@Resource
private CustomerInfoService customerInfoService;
@Resource
private AlihealthUtils alihealthUtils;
@Resource
private RelCodeDetailService relCodeDetailService;
@Resource
private RelCodeBatchService relCodeBatchService;
@Value("${ALIHEALTH_URL:http://gw.api.taobao.com/router/rest}")
private String alihealthUrl;
@Resource
private AuthCompanyMapper authCompanyMapper;
@Resource
@ -103,8 +97,7 @@ public class AlihealthYljgUtils {
&& org.apache.commons.lang3.StringUtils.isNotEmpty(authCompany.getAppSecret())
) {
try {
Map map = alihealthUtils.disposeSign(reqeust, authCompany.getAppSecret());
String json = HttpUtil.get(alihealthUrl, map);
String json = alihealthClient.accessAliInterface(reqeust, authCompany.getAppSecret());
log.error("阿里单据上传返回参数===" + json);
alihealthYljgUploadinoutbillResponse = JSONUtil.toBean(json, AlihealthYljgUploadinoutbillResponse.class);
@ -249,9 +242,7 @@ public class AlihealthYljgUtils {
&& org.apache.commons.lang3.StringUtils.isNotEmpty(authCompany.getAppSecret())
) {
try {
Map map = alihealthUtils.disposeSign(reqeust, authCompany.getAppSecret());
String json = HttpUtil.get(alihealthUrl, map);
String json = alihealthClient.accessAliInterface(reqeust, authCompany.getAppSecret());
alihealthYljgListupoutResponse = new AlihealthYljgListupoutResponse(json);
} catch (Exception e) {

Loading…
Cancel
Save