提交 187a1ecc 作者: 张小凤

DemandReleaseOrderServiceImpl(update)

上级 5827e9a5
......@@ -63,9 +63,18 @@ public class DemandReleaseOrderServiceImpl implements DemandReleaseOrderService
@Override
public ResultBody orderPayment(CommonPaymentVO commonPaymentVO, HttpServletRequest request, Integer userAccountId) {
String token = request.getHeader("token");
orderPost(commonPaymentVO,token);
if ("3".equals(commonPaymentVO.getOrderPort().toString())){
ResultBody resultBody = orderPost(commonPaymentVO, token);
return resultBody;
}
if ("4".equals(commonPaymentVO.getOrderPort().toString())){
//发布服务需求支付
publishServicePay(commonPaymentVO,token,userAccountId);
ResultBody resultBody = publishServicePay(commonPaymentVO, token, userAccountId);
return resultBody;
}
return ResultBody.success();
}
......@@ -77,6 +86,7 @@ public class DemandReleaseOrderServiceImpl implements DemandReleaseOrderService
* @return
*/
private ResultBody publishServicePay(CommonPaymentVO commonPaymentVO, String token,Integer userAccountId) {
if ("4".equals(commonPaymentVO.getOrderPort().toString())){
String orderNumber = commonPaymentVO.getOrderNumber();
String json = stringRedisTemplate.opsForValue().get(orderNumber);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论