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

Commit a83917e8 authored by 胡佳晨's avatar 胡佳晨

修改增加积分

parent c3dfa3bf
......@@ -101,7 +101,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
try {
if (payOrderParam.getVoucherType() != null && payOrderParam.getVoucherType().equals(3)) {
isPay = false;
if(payOrderParam.getNumber()>1){
if (payOrderParam.getNumber() > 1) {
return ResponseDto.failure("张数大于1不支持兑换");//参数错误
}
}
......@@ -952,7 +952,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
// log.info("下单消息模版错误",e);
// }
//加分
orderUtils.doTask(orderTickets.getUserId());
orderUtils.doTask(orderTickets.getUserId(), orderTicketData.getPerformanceTitle(), orderTicketData.getPriceActual());
//大麦回调
sycDamaiOrder(orderTickets.getOrderTicketsId(), orderTicketData.getIsMember());
}
......
......@@ -148,14 +148,15 @@ public class OrderUtils {
return surplusGeneral;
}
public void doTask(String uid) {
public void doTask(String uid,String title,BigDecimal price) {
try {
MultiValueMap<String, String> header = CollectionUtil.linkedMultiValueMapStringString();
header.add("Accept", "application/json;charset=UTF-8");
MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString();
params.add("taskId", "1");
params.add("score", price.intValue()+"");
params.add("content", "购买演出:"+title);
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) {
log.error("添加积分失败,e:{}", e);
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