大屏接口

dev_0531
yechenhao 6 years ago
parent 6918fa8f31
commit 997ed3c736

@ -722,7 +722,8 @@ public class CustomerViewService {
//查询企业微信已配置联系我的用户
int i = 0;
for (OpCustomer customer : customers) {
List<OpCustomer> opCustomers = customers.subList(132800, customers.size());
for (OpCustomer customer : opCustomers) {
i++;
try{
String wechatUniId = customer.getWechatUniId();
@ -732,15 +733,12 @@ public class CustomerViewService {
if (customer.getMemberId() != 0L){
continue;
}
String url = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Map<String, Object> params = new HashMap<>();
params.put("unionId", wechatUniId);
String message = HttpClientUtil.httpPost(vipBsdUrl + MD5FileUtil.getMD5String("BOSIDENG" + sdf.format(new Date())), JSONObject.toJSONString(params)).getMessage();
String message = HttpClientUtil.httpPost(vipBsdUrl + MD5FileUtil.getMD5String("BOSIDENG" + sdf.format(new Date()))+"&unionId="+wechatUniId, "").getMessage();
if (StringUtils.isBlank(message)){
continue;
}
System.out.println(i+"/"+customers.size()+"------"+message);
System.out.println(i+"/"+opCustomers.size()+"------"+message);
JSONObject vipJson = JSONObject.parseObject(message);
BsdVipResponse bsdResponse = vipJson.toJavaObject(BsdVipResponse.class);
if (bsdResponse.getSuccess() && bsdResponse.getData() != null){

Loading…
Cancel
Save