|
@@ -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
|
// 调用成功,更新数据库
|