|
@@ -151,7 +151,7 @@ public class NhIVController {
|
|
McR invoice_iv2(@RequestBody Map<String, String> data) throws TencentCloudSDKException {
|
|
McR invoice_iv2(@RequestBody Map<String, String> data) throws TencentCloudSDKException {
|
|
|
|
|
|
McException.assertParamException_Null(data, "url");
|
|
McException.assertParamException_Null(data, "url");
|
|
- String image = ydClient.convertTemporaryUrl(data.get("url"),6000);
|
|
|
|
|
|
+ String image = ydClient.convertTemporaryUrl(data.get("url"),6000,APP_TYPE,SYSTEM_TOKEN);
|
|
log.info("混票识别, 免登地址, {}", image);
|
|
log.info("混票识别, 免登地址, {}", image);
|
|
// 非PDF, 且内存大于3M, 压缩后上传
|
|
// 非PDF, 且内存大于3M, 压缩后上传
|
|
if (UtilMap.getFloat(data, "size") > 3.0f && !UtilMap.getBoolean(data, "isPdf")) {
|
|
if (UtilMap.getFloat(data, "size") > 3.0f && !UtilMap.getBoolean(data, "isPdf")) {
|
|
@@ -228,7 +228,7 @@ public class NhIVController {
|
|
McR invoice_iv(@RequestBody Map<String, String> data) throws TencentCloudSDKException {
|
|
McR invoice_iv(@RequestBody Map<String, String> data) throws TencentCloudSDKException {
|
|
|
|
|
|
McException.assertParamException_Null(data, "url");
|
|
McException.assertParamException_Null(data, "url");
|
|
- String image = ydClient.convertTemporaryUrl(data.get("url"),6000);
|
|
|
|
|
|
+ String image = ydClient.convertTemporaryUrl(data.get("url"),6000,APP_TYPE,SYSTEM_TOKEN);
|
|
log.info("混票识别, 免登地址, {}", image);
|
|
log.info("混票识别, 免登地址, {}", image);
|
|
// 非PDF, 且内存大于3M, 压缩后上传
|
|
// 非PDF, 且内存大于3M, 压缩后上传
|
|
if (UtilMap.getFloat(data, "size") > 3.0f && !UtilMap.getBoolean(data, "isPdf")) {
|
|
if (UtilMap.getFloat(data, "size") > 3.0f && !UtilMap.getBoolean(data, "isPdf")) {
|