订单拉取修改
This commit is contained in:
parent
7793d67963
commit
6b99484fd4
|
@ -418,7 +418,7 @@ public class MeituanServiceImpl implements IMeituanService {
|
||||||
String info = redisTemplate.opsForValue().get(key);
|
String info = redisTemplate.opsForValue().get(key);
|
||||||
List<String> s2 = JSON.parseArray(info).toList(String.class);
|
List<String> s2 = JSON.parseArray(info).toList(String.class);
|
||||||
if (s2.contains(wmOrderViewId)){
|
if (s2.contains(wmOrderViewId)){
|
||||||
break;
|
continue;
|
||||||
}else {
|
}else {
|
||||||
s2.add(wmOrderViewId);
|
s2.add(wmOrderViewId);
|
||||||
redisTemplate.opsForValue().set(key,JSON.toJSONString(s2));
|
redisTemplate.opsForValue().set(key,JSON.toJSONString(s2));
|
||||||
|
@ -472,6 +472,7 @@ public class MeituanServiceImpl implements IMeituanService {
|
||||||
log.error("订单时间解析异常不跳出"+e.getMessage());
|
log.error("订单时间解析异常不跳出"+e.getMessage());
|
||||||
}
|
}
|
||||||
orderInfo.setIsPhf(businessType);
|
orderInfo.setIsPhf(businessType);
|
||||||
|
|
||||||
list.add(orderInfo);
|
list.add(orderInfo);
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
log.error("================解析订单错误=============");
|
log.error("================解析订单错误=============");
|
||||||
|
@ -717,6 +718,7 @@ public class MeituanServiceImpl implements IMeituanService {
|
||||||
url = appendParams(url, params);
|
url = appendParams(url, params);
|
||||||
HttpGet request = new HttpGet(url);
|
HttpGet request = new HttpGet(url);
|
||||||
request.setHeader("Cookie",cookie);
|
request.setHeader("Cookie",cookie);
|
||||||
|
request.setHeader("Host","waimaieapp.meituan.com");
|
||||||
request.setHeader("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36");
|
request.setHeader("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36");
|
||||||
String result = null;
|
String result = null;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue