Commit e3208b5f by 黄明步

.

parent db866c53
...@@ -54,7 +54,7 @@ public class AppAbilityRecordAllController { ...@@ -54,7 +54,7 @@ public class AppAbilityRecordAllController {
String newYearMonthDay = yearMonthDay; String newYearMonthDay = yearMonthDay;
if(StrUtil.isNotBlank(yearMonthDay)){ if(StrUtil.isNotBlank(yearMonthDay)){
int count = yearMonthDay.split("-").length; int count = yearMonthDay.split("-").length;
switch (count){ switch (count) {
case 1: case 1:
DateTime year = DateUtil.parse(yearMonthDay, "yyyy"); DateTime year = DateUtil.parse(yearMonthDay, "yyyy");
yearMonthDay = DateUtil.beginOfYear(year).toString(); yearMonthDay = DateUtil.beginOfYear(year).toString();
......
...@@ -197,7 +197,7 @@ public class RetransmissionService { ...@@ -197,7 +197,7 @@ public class RetransmissionService {
String ocrApi = "http://" + ocrServerAddress.getIp() + ":" + ocrServerAddress.getOcrPort(); String ocrApi = "http://" + ocrServerAddress.getIp() + ":" + ocrServerAddress.getOcrPort();
try { try {
res = HttpRequest.post(ocrApi + "/ofs/api/sync/v1/1001") res = HttpRequest.post(ocrApi + "/ofs/api/sync/v1/" + code)
.headerMap(getHeaderMap(request), true) .headerMap(getHeaderMap(request), true)
.form(paramMap) .form(paramMap)
.setConnectionTimeout(10 * 1000) .setConnectionTimeout(10 * 1000)
...@@ -308,7 +308,7 @@ public class RetransmissionService { ...@@ -308,7 +308,7 @@ public class RetransmissionService {
String ocrApi = "http://" + ocrServerAddress.getIp() + ":" + ocrServerAddress.getOcrPort(); String ocrApi = "http://" + ocrServerAddress.getIp() + ":" + ocrServerAddress.getOcrPort();
try { try {
res = HttpRequest.post(ocrApi + "/ofs/api/sync/v2/1001") res = HttpRequest.post(ocrApi + "/ofs/api/sync/v2/" + code)
.headerMap(getHeaderMap(request), true) .headerMap(getHeaderMap(request), true)
.form(paramMap) .form(paramMap)
.setConnectionTimeout(10 * 1000) .setConnectionTimeout(10 * 1000)
...@@ -599,7 +599,7 @@ public class RetransmissionService { ...@@ -599,7 +599,7 @@ public class RetransmissionService {
String ocrApi = "http://" + ocrServerAddress.getIp() + ":" + ocrServerAddress.getOcrPort(); String ocrApi = "http://" + ocrServerAddress.getIp() + ":" + ocrServerAddress.getOcrPort();
try { try {
res = HttpRequest.post(ocrApi + "/ofs/api/sync/v2/" + code) res = HttpRequest.post(ocrApi + "/ofs/api/sync/v2/ft/" + code)
.headerMap(getHeaderMap(request), true) .headerMap(getHeaderMap(request), true)
.form(paramMap) .form(paramMap)
.setConnectionTimeout(10 * 1000) .setConnectionTimeout(10 * 1000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment