|
@@ -52,6 +52,12 @@ public class UploadController {
|
|
|
jsonObject.put("data", "不能上传空文件哦");
|
|
|
return jsonObject;
|
|
|
}
|
|
|
+ if (lineDir!=1&&lineDir!=2){
|
|
|
+ jsonObject.put("resultCode", 2);
|
|
|
+ jsonObject.put("message", "失败");
|
|
|
+ jsonObject.put("data", "行别填写错误");
|
|
|
+ return jsonObject;
|
|
|
+ }
|
|
|
//图片保存路径
|
|
|
//String fileUploadPath ="/"+userId+"/image";
|
|
|
String uploadFile = null;
|