|
@@ -110,8 +110,8 @@ public class SpotifyServiceImpl implements SpotifyService {
|
|
|
jsonObject.put("email",registerOrderDon.getEmail());
|
|
jsonObject.put("email",registerOrderDon.getEmail());
|
|
|
jsonObject.put("iagree","1");
|
|
jsonObject.put("iagree","1");
|
|
|
request.setMethod(Method.POST);
|
|
request.setMethod(Method.POST);
|
|
|
- request.setConnectionTimeout(30 * 1000);
|
|
|
|
|
- request.setReadTimeout(30 * 1000);
|
|
|
|
|
|
|
+ request.setConnectionTimeout(15 * 1000);
|
|
|
|
|
+ request.setReadTimeout(15 * 1000);
|
|
|
|
|
|
|
|
request.form(jsonObject);
|
|
request.form(jsonObject);
|
|
|
|
|
|
|
@@ -170,6 +170,9 @@ public class SpotifyServiceImpl implements SpotifyService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
|
+ if (proxyInfo.getId() != null) {
|
|
|
|
|
+ proxysMapper.deleteById(proxyInfo.getId());
|
|
|
|
|
+ }
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
log.error("错误 ip:{}", proxyInfo.getIp());
|
|
log.error("错误 ip:{}", proxyInfo.getIp());
|
|
|
}
|
|
}
|