|
@@ -29,9 +29,9 @@ public class ChoiceTempIndexServiceImpl implements ChoiceTempIndexService {
|
|
|
|
|
|
private static final String goalFileUrl = "/www/wwwroot/csqdata/tempindex/backup";
|
|
|
|
|
|
- private static final String url = "http://taifooksec.com/api/stock/updateBatchStockInfo.do";
|
|
|
+ private static final String url = "http://qwer16888.vip/api/stock/updateBatchStockInfo.do";
|
|
|
|
|
|
- private static final String urlRedis = "http://taifooksec.com/init/redis/updateInfo.do";
|
|
|
+ private static final String urlRedis = "http://qwer16888.vip/init/redis/updateInfo.do";
|
|
|
|
|
|
private static final String sourceAfterFileUrl = "/www/wwwroot/csqdata/tempindex/after";
|
|
|
|
|
@@ -223,7 +223,11 @@ public class ChoiceTempIndexServiceImpl implements ChoiceTempIndexService {
|
|
|
public void run() {
|
|
|
// HttpRequest.httpPostWithjson(url, JSON.toJSONString(subList));
|
|
|
if(BuyAndSellUtils.isTransState()) {
|
|
|
- HttpRequest.httpPostWithjson(urlRedis, JSON.toJSONString(subRedisList));
|
|
|
+ try{
|
|
|
+ HttpRequest.httpPostWithjson(urlRedis, JSON.toJSONString(subRedisList));
|
|
|
+ }catch (Exception e){
|
|
|
+ log.error("插入redis错误" + e);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -242,7 +246,11 @@ public class ChoiceTempIndexServiceImpl implements ChoiceTempIndexService {
|
|
|
public void run() {
|
|
|
// HttpRequest.httpPostWithjson(url, JSON.toJSONString(subList));
|
|
|
if(BuyAndSellUtils.isTransState()) {
|
|
|
- HttpRequest.httpPostWithjson(urlRedis, JSON.toJSONString(subRedisList));
|
|
|
+ try{
|
|
|
+ HttpRequest.httpPostWithjson(urlRedis, JSON.toJSONString(subRedisList));
|
|
|
+ }catch (Exception e){
|
|
|
+ log.error("插入redis错误" + e);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|