生成二维码 增加请求超时时间

master
guochaojie 4 months ago
parent 9c3afcf87a
commit 0e3701bcd3

@ -457,7 +457,7 @@ public class RecycleDeviceServiceImpl extends ServiceImpl<RecycleDeviceMapper, R
HttpResponse response = HttpRequest.post(wx_url + "/api/wx/generateDeviceQRCode") HttpResponse response = HttpRequest.post(wx_url + "/api/wx/generateDeviceQRCode")
.header("Content-Type", "application/json") .header("Content-Type", "application/json")
.body(JSONUtil.toJsonStr(param)) .body(JSONUtil.toJsonStr(param))
.timeout(1000) .timeout(3000)
.execute(); .execute();
String body = response.body(); String body = response.body();
JSONObject result = JSONUtil.parseObj(body); JSONObject result = JSONUtil.parseObj(body);

Loading…
Cancel
Save