|
@@ -129,6 +129,11 @@ public class FdModelController {
|
|
|
return new R(51005, MsgCode.E51005);
|
|
|
}
|
|
|
|
|
|
+ String s = StringUtils.substringAfterLast(fileName, ".");
|
|
|
+ if (!"zip".equals(s)) {
|
|
|
+ return new R(50007, MsgCode.E50007);
|
|
|
+ }
|
|
|
+
|
|
|
List<FileEntity> list = modelServer.findByFileName(fileName);
|
|
|
if (list.size() > 0) {
|
|
|
return new R(51006, MsgCode.E51006);
|