diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6560a98983ec708cf9d8b5c5c3776d7bd39c475b
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/com/we/config/WebMvcConfig.java b/src/main/java/com/we/config/WebMvcConfig.java
index e4bd34368a5c7f52a382e9765b8a96e4e1228382..71749d66412c72b9a9966dca4eaa209b98edf41b 100644
--- a/src/main/java/com/we/config/WebMvcConfig.java
+++ b/src/main/java/com/we/config/WebMvcConfig.java
@@ -10,4 +10,5 @@ public class WebMvcConfig extends WebMvcConfigurationSupport {
protected void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
}
+
}
diff --git a/src/main/java/com/we/controller/PhotographController.java b/src/main/java/com/we/controller/PhotographController.java
index 32fa146fa0e33808278067a91df4fd6f72bfd878..de37d070b5c5d966dc2c0a1ccf2426ac3473d2fe 100644
--- a/src/main/java/com/we/controller/PhotographController.java
+++ b/src/main/java/com/we/controller/PhotographController.java
@@ -5,17 +5,10 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
-import org.springframework.web.multipart.MultipartFile;
import sun.misc.BASE64Decoder;
-import sun.text.resources.FormatData;
-import java.io.File;
import java.io.FileOutputStream;
-import java.io.IOException;
import java.io.OutputStream;
-import java.text.DateFormat;
-import java.text.Format;
-import java.util.Date;
@Controller
@RequestMapping("/photograph")
@@ -37,7 +30,8 @@ public class PhotographController {
@RequestMapping("/photoUpload")
@ResponseBody
public int fileUpload(@RequestParam("op") String op, @RequestParam("base64url") String base64url) {
- if (!"takePhoto".equals(op)) {
+ String opStr = "takePhoto";
+ if (!opStr.equals(op)) {
return -1;
}
BASE64Decoder decoder = new BASE64Decoder();
@@ -46,7 +40,8 @@ public class PhotographController {
// Base64解码
byte[] b = decoder.decodeBuffer(baseurl);
for (int i = 0; i < b.length; ++i) {
- if (b[i] < 0) {// 调整异常数据
+ // 调整异常数据
+ if (b[i] < 0) {
b[i] += 256;
}
}
diff --git a/src/main/resources/templates/fileoperation/multifile.html b/src/main/resources/templates/fileoperation/multifile.html
index 694d88763f6187a78fc44ad71f59aba4e02610de..a1a957911fbef73e8462d3a2065abb6e7b338dfc 100644
--- a/src/main/resources/templates/fileoperation/multifile.html
+++ b/src/main/resources/templates/fileoperation/multifile.html
@@ -1,6 +1,5 @@
-
+
Insert title here