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

Commit 6e8b20b2 authored by jiangxiulong's avatar jiangxiulong

Merge remote-tracking branch 'origin/dev_stone' into dev_stone

parents fd4bd91e 09a6782e
package com.liquidnet.common.feign.interceptor;
import com.liquidnet.commons.lang.util.CurrentUtil;
import com.liquidnet.commons.lang.util.ServletUtils;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
@Component
public class SecuringRequestInterceptor implements RequestInterceptor {
@Override
public void apply(RequestTemplate requestTemplate) {
HttpServletRequest request = ServletUtils.getRequest();
requestTemplate.header(CurrentUtil.uToken, request.getHeader(CurrentUtil.uToken));
}
}
...@@ -101,7 +101,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ ...@@ -101,7 +101,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
try { try {
if (payOrderParam.getVoucherType() != null && payOrderParam.getVoucherType().equals(3)) { if (payOrderParam.getVoucherType() != null && payOrderParam.getVoucherType().equals(3)) {
isPay = false; isPay = false;
if(payOrderParam.getNumber()>1){ if (payOrderParam.getNumber() > 1) {
return ResponseDto.failure("张数大于1不支持兑换");//参数错误 return ResponseDto.failure("张数大于1不支持兑换");//参数错误
} }
} }
...@@ -952,7 +952,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ ...@@ -952,7 +952,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
// log.info("下单消息模版错误",e); // log.info("下单消息模版错误",e);
// } // }
//加分 //加分
orderUtils.doTask(orderTickets.getUserId()); orderUtils.doTask(orderTickets.getUserId(), orderTicketData.getPerformanceTitle(), orderTicketData.getPriceActual());
//大麦回调 //大麦回调
sycDamaiOrder(orderTickets.getOrderTicketsId(), orderTicketData.getIsMember()); sycDamaiOrder(orderTickets.getOrderTicketsId(), orderTicketData.getIsMember());
} }
......
...@@ -148,14 +148,15 @@ public class OrderUtils { ...@@ -148,14 +148,15 @@ public class OrderUtils {
return surplusGeneral; return surplusGeneral;
} }
public void doTask(String uid) { public void doTask(String uid,String title,BigDecimal price) {
try { try {
MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString(); MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString();
header.add("Accept", "application/json;charset=UTF-8"); header.add("Accept", "application/json;charset=UTF-8");
MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString(); MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString();
params.add("taskId", "1"); params.add("score", price.intValue()+"");
params.add("content", "购买演出:"+title);
params.add("uid", uid); params.add("uid", uid);
String resultData = HttpUtil.post(stoneUrl + "/user/inner/doTask", params, header); String resultData = HttpUtil.post(stoneUrl + "/user/logs/in2111", params, header);
} catch (Exception e) { } catch (Exception e) {
log.error("添加积分失败,e:{}", e); log.error("添加积分失败,e:{}", e);
e.printStackTrace(); e.printStackTrace();
......
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