Authored by ping

add union

@@ -295,3 +295,12 @@ union_types: @@ -295,3 +295,12 @@ union_types:
295 295
296 - value: 195 296 - value: 195
297 name: mobvista5 297 name: mobvista5
  298 +
  299 + - value: 196
  300 + name: ASZM-fensitong4
  301 +
  302 + - value: 197
  303 + name: ASZM-fensitong5
  304 +
  305 + - value: 198
  306 + name: ASZM-fensitong6
@@ -282,10 +282,14 @@ public class UnionServiceImpl implements IUnionService { @@ -282,10 +282,14 @@ public class UnionServiceImpl implements IUnionService {
282 //改成httpclient方式调用 282 //改成httpclient方式调用
283 283
284 Pair<Integer, String> pair = HttpUtils.httpGet(url); 284 Pair<Integer, String> pair = HttpUtils.httpGet(url);
285 -  
286 log.info("activateUnion call union success url={}, and result={}", url, pair); 285 log.info("activateUnion call union success url={}, and result={}", url, pair);
  286 + if (pair.getLeft() != 200) {
  287 + log.warn("callback error with request={}", request);
  288 + return new UnionResponse(204, "callback error");
  289 + }
287 } catch (Exception e) { 290 } catch (Exception e) {
288 log.error("callback error with request={}", request, e); 291 log.error("callback error with request={}", request, e);
  292 + return new UnionResponse(204, "callback error");
289 } 293 }
290 } 294 }
291 // 调用成功,更新数据库 295 // 调用成功,更新数据库