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

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

转赠

parent fbfb638c
......@@ -881,10 +881,10 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
}
for (AdamEntersVo item : adamEnters) {
entersVoList.add(item);
if(!item.getType().equals(1)){
return ResponseDto.failure("学生票优惠核验失败,无法购买");
}
if (ticketData.getIsStudent() == 1) {
if(!item.getType().equals(1)){
return ResponseDto.failure("学生票优惠核验失败,无法购买");
}
int age = IDCard.getAgeByIdCard(item.getIdCard());
if (age > 25) {
return ResponseDto.failure(ErrorMapping.get("20017"));//学生票年龄问题
......
......@@ -182,9 +182,9 @@ public class OrderUtils {
public List<AdamEntersVo> getEnters(String entersIds, String uid) {
MultiValueMap<String, String> head = CollectionUtil.linkedMultiValueMapStringString();
head.add("Content-Type", "application/json;charset=UTF-8");
String returnVo = HttpUtil.get("https://testadam.zhengzai.tv" + "/adam/rsc/inquire/enters?entersIds=" + entersIds + "&uid=" + uid, null, head);
MultiValueMap<String, String> headers = CollectionUtil.linkedMultiValueMapStringString();
headers.add("Accept", "application/json;charset=UTF-8");
String returnVo = HttpUtil.get("https://testadam.zhengzai.tv" + "/adam/rsc/inquire/enters?entersIds=" + entersIds + "&uid=" + uid, null, headers);
ResponseDto<List<AdamEntersVo>> ResponseVo = JsonUtils.fromJson(returnVo, new TypeReference<ResponseDto<List<AdamEntersVo>>>() {
});
return ResponseVo.getData();
......
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