记得上下班打卡 | git大法好,push需谨慎

Commit 9026e489 authored by jiangxiulong's avatar jiangxiulong

退款配置urls整理 还有会员退款

parent 6049fdec
...@@ -66,9 +66,9 @@ public class AdamMemberOrderAdminServiceImpl extends ServiceImpl<AdamMemberOrder ...@@ -66,9 +66,9 @@ public class AdamMemberOrderAdminServiceImpl extends ServiceImpl<AdamMemberOrder
@Autowired @Autowired
private RedisDataSourceUtil redisDataSourceUtil; private RedisDataSourceUtil redisDataSourceUtil;
@Value("${liquidnet.url-refund.apply}") @Value("${liquidnet.service.dragon.urls.refundApply}")
private String applyUrl; private String applyUrl;
@Value("${liquidnet.url-refund.notify-member}") @Value("${liquidnet.service.platform.urls.memberRefundNotify}")
private String notifyUrl; private String notifyUrl;
@Override @Override
......
...@@ -55,10 +55,10 @@ import java.util.stream.Collectors; ...@@ -55,10 +55,10 @@ import java.util.stream.Collectors;
@Service @Service
public class KylinRefundsStatusServiceImpl { public class KylinRefundsStatusServiceImpl {
@Value("${liquidnet.url-refund.apply}") @Value("${liquidnet.service.dragon.urls.refundApply}")
private String applyUrl; private String refundApply;
@Value("${liquidnet.url-refund.notify}") @Value("${liquidnet.service.platform.urls.ticketRefundNotify}")
private String notifyUrl; private String refundNotify;
@Autowired @Autowired
private KylinOrderTicketsMapper kylinOrderTicketsMapper; private KylinOrderTicketsMapper kylinOrderTicketsMapper;
...@@ -426,7 +426,7 @@ public class KylinRefundsStatusServiceImpl { ...@@ -426,7 +426,7 @@ public class KylinRefundsStatusServiceImpl {
BigDecimal refundPrice = refund.getPrice().add(refund.getPriceExpress()); BigDecimal refundPrice = refund.getPrice().add(refund.getPriceExpress());
MultiValueMap<String, String> params = new LinkedMultiValueMap(); MultiValueMap<String, String> params = new LinkedMultiValueMap();
params.add("code", oderInfo.getPayCode()); params.add("code", oderInfo.getPayCode());
params.add("notifyUrl", notifyUrl); params.add("notifyUrl", refundNotify);
params.add("orderCode", oderInfo.getOrderCode()); params.add("orderCode", oderInfo.getOrderCode());
params.add("orderRefundCode", refund.getOrderRefundCode()); params.add("orderRefundCode", refund.getOrderRefundCode());
params.add("paymentId", oderInfo.getPaymentId()); params.add("paymentId", oderInfo.getPaymentId());
...@@ -442,7 +442,7 @@ public class KylinRefundsStatusServiceImpl { ...@@ -442,7 +442,7 @@ public class KylinRefundsStatusServiceImpl {
// 请求pay // 请求pay
String postResult = null; String postResult = null;
try { try {
postResult = HttpUtil.post(applyUrl, params, headers); postResult = HttpUtil.post(refundApply, params, headers);
log.info("退款res" + postResult); log.info("退款res" + postResult);
HashMap hashMapResult = JsonUtils.fromJson(postResult, HashMap.class); HashMap hashMapResult = JsonUtils.fromJson(postResult, HashMap.class);
Boolean success = (Boolean) hashMapResult.get("success"); Boolean success = (Boolean) hashMapResult.get("success");
...@@ -510,8 +510,8 @@ public class KylinRefundsStatusServiceImpl { ...@@ -510,8 +510,8 @@ public class KylinRefundsStatusServiceImpl {
headers.add("Accept", "application/json;charset=UTF-8"); headers.add("Accept", "application/json;charset=UTF-8");
log.info("订单主动完成退款orderTicketRefunded:[refundCallbackParam={}, [orderRefundCode={}, notifyUrl={}]", log.info("订单主动完成退款orderTicketRefunded:[refundCallbackParam={}, [orderRefundCode={}, notifyUrl={}]",
refundCallbackParam, refundInfo.getOrderRefundCode(), notifyUrl); refundCallbackParam, refundInfo.getOrderRefundCode(), refundNotify);
String returnData = HttpUtil.post(notifyUrl, params, headers); String returnData = HttpUtil.post(refundNotify, params, headers);
log.info("订单主动完成退款orderTicketRefunded-platform结果:{}", returnData); log.info("订单主动完成退款orderTicketRefunded-platform结果:{}", returnData);
return true; return true;
......
...@@ -95,7 +95,8 @@ liquidnet: ...@@ -95,7 +95,8 @@ liquidnet:
refundResult: https://devdragon.zhengzai.tv/dragon/refund/refund/alipay/result refundResult: https://devdragon.zhengzai.tv/dragon/refund/refund/alipay/result
platform: platform:
urls: urls:
refundNotify: https://devplatform.zhengzai.tv/platform/refund/callback ticketRefundNotify: https://devplatform.zhengzai.tv/platform/refund/callback
memberRefundNotify: https://devplatform.zhengzai.tv/platform/amorder/callack/refund
url: http://devplatform.zhengzai.tv url: http://devplatform.zhengzai.tv
sweet: sweet:
url: http://devsweet.zhengzai.tv url: http://devsweet.zhengzai.tv
......
...@@ -97,7 +97,8 @@ liquidnet: ...@@ -97,7 +97,8 @@ liquidnet:
refundResult: https://testdragon.zhengzai.tv/dragon/refund/refund/alipay/result refundResult: https://testdragon.zhengzai.tv/dragon/refund/refund/alipay/result
platform: platform:
urls: urls:
refundNotify: https://testplatform.zhengzai.tv/platform/refund/callback ticketRefundNotify: https://testplatform.zhengzai.tv/platform/refund/callback
memberRefundNotify: https://testplatform.zhengzai.tv/platform/amorder/callack/refund
url: http://testplatform.zhengzai.tv url: http://testplatform.zhengzai.tv
sweet: sweet:
url: http://testsweet.zhengzai.tv url: http://testsweet.zhengzai.tv
......
...@@ -15,10 +15,6 @@ ruoyi: ...@@ -15,10 +15,6 @@ ruoyi:
#系统自定义配置 #系统自定义配置
liquidnet: liquidnet:
url-refund:
apply: "${liquidnet.client.admin.phpPayUrl}/dragon/refund/refundSingle"
notify: "${liquidnet.client.admin.platformUrl}/platform/refund/callback"
notify-member: ${liquidnet.client.admin.platformUrl}/platform/amorder/callack/refund
url-banner: url-banner:
url6: "/kylin/performances/recommend/performance/status?pageNum=1&pageSize=50&status=(3,6,7,8,9,10)" #票务 url6: "/kylin/performances/recommend/performance/status?pageNum=1&pageSize=50&status=(3,6,7,8,9,10)" #票务
url7: "${liquidnet.client.admin.phpMallUrl}/admin/goodListForQuick?page=1&per_page=50" #商品 url7: "${liquidnet.client.admin.phpMallUrl}/admin/goodListForQuick?page=1&per_page=50" #商品
......
...@@ -52,7 +52,7 @@ public class OrderRefundsCallbackServiceImpl extends ServiceImpl<KylinOrderRefun ...@@ -52,7 +52,7 @@ public class OrderRefundsCallbackServiceImpl extends ServiceImpl<KylinOrderRefun
private String refundApply; private String refundApply;
@Value("${liquidnet.service.dragon.urls.refundResult}") @Value("${liquidnet.service.dragon.urls.refundResult}")
private String refundResult; private String refundResult;
@Value("${liquidnet.service.platform.urls.refundNotify}") @Value("${liquidnet.service.platform.urls.ticketRefundNotify}")
private String refundNotify; private String refundNotify;
@Autowired @Autowired
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment