|
@@ -197,13 +197,10 @@ public class ThOcrServiceImpl implements IThOcrService{
|
|
|
public void insertOCRdataInfo(ArrayList<OCRInvoiceVO> vos) throws BusinessException {
|
|
|
insert(vos);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
public String getOcrToken(String userid) throws Exception{
|
|
|
HttpClient httpClient = new HttpClient();
|
|
|
- httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(5000);
|
|
|
- httpClient.getHttpConnectionManager().getParams().setSoTimeout(5000);
|
|
|
+ httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(60000);
|
|
|
+ httpClient.getHttpConnectionManager().getParams().setSoTimeout(60000);
|
|
|
PostMethod postMethod = new PostMethod(buildToken);
|
|
|
postMethod.setRequestHeader("content-type", "application/json");
|
|
|
postMethod.setRequestHeader("appkey", appId);
|