提交下下3333
This commit is contained in:
parent
44616028b2
commit
865b832105
6
pom.xml
6
pom.xml
|
@ -222,7 +222,7 @@
|
|||
<jdbcPort>13307</jdbcPort>
|
||||
<log4jFile>log4j2-dev.xml</log4jFile>
|
||||
<sqlPrintClass>org.apache.ibatis.logging.stdout.StdOutImpl</sqlPrintClass>
|
||||
<MAX_FILE_SIZE>3MB</MAX_FILE_SIZE>
|
||||
<MAX_FILE_SIZE>5MB</MAX_FILE_SIZE>
|
||||
<MAX_REQUEST_FILE_SIZE>5MB</MAX_REQUEST_FILE_SIZE>
|
||||
<HTTP_DEFAULT_PROXY_HOST></HTTP_DEFAULT_PROXY_HOST>
|
||||
<HTTP_DEFAULT_PROXY_PORT>8080</HTTP_DEFAULT_PROXY_PORT>
|
||||
|
@ -240,7 +240,7 @@
|
|||
<jdbcIp>47.97.80.223</jdbcIp>
|
||||
<jdbcPort>13307</jdbcPort>
|
||||
<log4jFile>log4j2</log4jFile>
|
||||
<MAX_FILE_SIZE>3MB</MAX_FILE_SIZE>
|
||||
<MAX_FILE_SIZE>5MB</MAX_FILE_SIZE>
|
||||
<MAX_REQUEST_FILE_SIZE>5MB</MAX_REQUEST_FILE_SIZE>
|
||||
<sqlPrintClass>org.apache.ibatis.logging.stdout.StdOutImpl</sqlPrintClass>
|
||||
<HTTP_DEFAULT_PROXY_HOST></HTTP_DEFAULT_PROXY_HOST>
|
||||
|
@ -257,7 +257,7 @@
|
|||
<jdbcUrl>jdbc:mysql://${jdbcIp}:${jdbcPort}/edu-train-dev?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Hongkong&useSSL=false&allowMultiQueries=true</jdbcUrl>
|
||||
<jdbcIp>47.97.80.223</jdbcIp>
|
||||
<jdbcPort>13307</jdbcPort>
|
||||
<MAX_FILE_SIZE>3MB</MAX_FILE_SIZE>
|
||||
<MAX_FILE_SIZE>5MB</MAX_FILE_SIZE>
|
||||
<MAX_REQUEST_FILE_SIZE>5MB</MAX_REQUEST_FILE_SIZE>
|
||||
<log4jFile>log4j2.xml</log4jFile>
|
||||
<sqlPrintClass>org.apache.ibatis.logging.log4j2.Log4j2Impl</sqlPrintClass>
|
||||
|
|
|
@ -131,8 +131,8 @@ public class FaceInfoManagerController extends ManageBaseController {
|
|||
@RequestParam(required = true, value = "faceId") String faceId
|
||||
) throws Exception {
|
||||
|
||||
if(null!=file && file.getSize()> 3145728L){
|
||||
throw SystemExceptionUtils.buildBusinessException("上传图片请不要超过3MB!");
|
||||
if(null!=file && file.getSize()> 3566353L){
|
||||
throw SystemExceptionUtils.buildBusinessException("上传图片请不要超过3.3MB!");
|
||||
}
|
||||
String imgUrl="";
|
||||
FuseFaceResponse resp=null;
|
||||
|
@ -164,7 +164,7 @@ public class FaceInfoManagerController extends ManageBaseController {
|
|||
// Path imageFile = Paths.get("F:\\体验腾讯人脸融合-素材\\222.jpg");
|
||||
byte[] imageBytes = file.getBytes();
|
||||
|
||||
|
||||
/*
|
||||
// long timeStamp1 = System.currentTimeMillis();
|
||||
Path uploadPath = Paths.get(fileUploadProperties.getUploadDir()).toAbsolutePath().normalize();
|
||||
|
||||
|
@ -181,27 +181,13 @@ public class FaceInfoManagerController extends ManageBaseController {
|
|||
//将文件存储在服务器的磁盘目录
|
||||
file.transferTo(new File(filePath.toString()));
|
||||
|
||||
/* // 构建文件的访问URL(可选)
|
||||
String fileDownloadUri = ServletUriComponentsBuilder.fromCurrentContextPath()
|
||||
.path("/download/")
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
InputStream imageInputStream = new FileInputStream("F:\\体验腾讯人脸融合-素材\\111.jpg");
|
||||
byte[] imageBytes = new byte[imageInputStream.available()];
|
||||
imageInputStream.read(imageBytes);
|
||||
imageInputStream.close();*/
|
||||
|
||||
String imgBase = Base64.getEncoder().encodeToString(imageBytes);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//{"MaterialInfos":[{"MaterialId":"mt_1895077021871144960","MaterialStatus":21,"CreateTime":"2025-02-27 19:42:25","UpdateTime":"2025-02-27 19:42:25","MaterialFaceList":[{"FaceId":"mt_1895077021871144960_1","FaceInfo":{"X":159,"Y":360,"Width":49,"Height":64}}],"MaterialName":"微信图片_20250227194033.png","AuditResult":""},{"MaterialId":"mt_1895077032491122688","MaterialStatus":21,"CreateTime":"2025-02-27 19:42:28","UpdateTime":"2025-02-27 19:42:28","MaterialFaceList":[{"FaceId":"mt_1895077032491122688_1","FaceInfo":{"X":373,"Y":362,"Width":49,"Height":69}}],"MaterialName":"微信图片_20250227194036.png","AuditResult":""},{"MaterialId":"mt_1895077041827643392","MaterialStatus":21,"CreateTime":"2025-02-27 19:42:30","UpdateTime":"2025-02-27 19:42:30","MaterialFaceList":[{"FaceId":"mt_1895077041827643392_1","FaceInfo":{"X":242,"Y":401,"Width":57,"Height":70}}],"MaterialName":"微信图片_20250227194038.png","AuditResult":""}],"Count":3,"RequestId":"3585e437-6a27-4dc9-b59b-11f66ca4382f"}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue