diff --git a/src/main/java/com/yutou/qqbot/Controllers/AppController.java b/src/main/java/com/yutou/qqbot/Controllers/AppController.java index ed07c24..ed0c6b7 100644 --- a/src/main/java/com/yutou/qqbot/Controllers/AppController.java +++ b/src/main/java/com/yutou/qqbot/Controllers/AppController.java @@ -79,7 +79,7 @@ public class AppController { @ResponseBody @RequestMapping("/qq/file.do") public String sendFile(@RequestParam("image") MultipartFile file) throws Exception { - String path=AppTools.createFile("tmp",file,AppTools.getToDayNowTimeToString()+".png"); + String path=AppTools.createFile("tmp",file,System.currentTimeMillis()+".png"); if(StringUtils.isEmpty(path)){ return "not file"; } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 53e5036..3c76dd8 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1,3 @@ -server.port=8002 \ No newline at end of file +server.port=8002 +spring.servlet.multipart.max-file-size=10MB +spring.servlet.multipart.max-request-size=100MB \ No newline at end of file diff --git a/src/main/resources/application.properties.release b/src/main/resources/application.properties.release index 53e5036..3c76dd8 100644 --- a/src/main/resources/application.properties.release +++ b/src/main/resources/application.properties.release @@ -1 +1,3 @@ -server.port=8002 \ No newline at end of file +server.port=8002 +spring.servlet.multipart.max-file-size=10MB +spring.servlet.multipart.max-request-size=100MB \ No newline at end of file