|
@@ -180,7 +180,8 @@ public class FaceppService {
|
|
public void uploadPhoto(User accessUser, String fileName, File file) throws Exception {
|
|
public void uploadPhoto(User accessUser, String fileName, File file) throws Exception {
|
|
Long rootOrgId = accessUser.getRootOrgId();
|
|
Long rootOrgId = accessUser.getRootOrgId();
|
|
String userToken = accessUser.getUserToken();
|
|
String userToken = accessUser.getUserToken();
|
|
- if (!(fileName.endsWith(".jpg") || fileName.endsWith(".png"))) {
|
|
|
|
|
|
+ if (!(fileName.endsWith(".jpg") || fileName.endsWith(".png")
|
|
|
|
+ || fileName.endsWith(".gif"))) {
|
|
throw new StatusException("EX-101001", "文件格式错误");
|
|
throw new StatusException("EX-101001", "文件格式错误");
|
|
}
|
|
}
|
|
|
|
|