|
|
@@ -31,8 +31,8 @@ import java.util.List;
|
|
|
@Service
|
|
|
public class AccessControlServiceImpl implements AccessControlService{
|
|
|
|
|
|
- /* @Autowired
|
|
|
- private FileApi fileApi;*/
|
|
|
+ @Autowired
|
|
|
+ private FileApi fileApi;
|
|
|
|
|
|
@Autowired
|
|
|
private WechatApi wechatApi;
|
|
|
@@ -71,8 +71,8 @@ public class AccessControlServiceImpl implements AccessControlService{
|
|
|
MultipartFile file = new ImageFile(imageData, information.get(0).getStuName());
|
|
|
Result<FileInfoDTO> fileInfo = null;
|
|
|
try {
|
|
|
- //fileInfo = fileApi.upload(0L, file);
|
|
|
- //fileId = fileInfo.getData().getId();
|
|
|
+ fileInfo = fileApi.upload(0L, file);
|
|
|
+ fileId = fileInfo.getData().getId();
|
|
|
}catch (Exception ex) {
|
|
|
logger.error(ex.getMessage());
|
|
|
}
|