|
|
@@ -37,8 +37,8 @@ public class MiniAppUserServiceImpl implements IMiniAppUserService
|
|
|
@Autowired
|
|
|
private MiniAppUserMapper miniAppUserMapper;
|
|
|
|
|
|
- @Autowired
|
|
|
- private OSSUtils ossUtils;
|
|
|
+ //@Autowired
|
|
|
+ //private OSSUtils ossUtils;
|
|
|
|
|
|
/**
|
|
|
* 查询小程序用户
|
|
|
@@ -129,10 +129,10 @@ public class MiniAppUserServiceImpl implements IMiniAppUserService
|
|
|
String format = DateUtil.format(new Date(), "/yyyyMMddHHmmssSSS.");
|
|
|
String fileExtendName = FileUtils.getFileExtendName(file.getBytes());
|
|
|
String filePath = MiniAppConstants.FilePrefix.USER_AVATAR + miniAppUser.getOpenId() + format + fileExtendName;
|
|
|
- ossUtils.upload(filePath, file.getBytes());
|
|
|
- String imgUrl = ossUtils.getUrl(filePath, false);
|
|
|
- result.put("imgUrl", imgUrl);
|
|
|
- result.put("filePath", filePath);
|
|
|
+ //ossUtils.upload(filePath, file.getBytes());
|
|
|
+ //String imgUrl = ossUtils.getUrl(filePath, false);
|
|
|
+ //result.put("imgUrl", imgUrl);
|
|
|
+ //result.put("filePath", filePath);
|
|
|
miniAppUser.setAvatar(filePath);
|
|
|
updateMiniAppUser(miniAppUser);
|
|
|
return result;
|
|
|
@@ -152,7 +152,7 @@ public class MiniAppUserServiceImpl implements IMiniAppUserService
|
|
|
{
|
|
|
if(!ObjectUtils.isEmpty(user.getAvatar()))
|
|
|
{
|
|
|
- user.setAvatar(ossUtils.getUrl(user.getAvatar(), false));
|
|
|
+ //user.setAvatar(ossUtils.getUrl(user.getAvatar(), false));
|
|
|
}
|
|
|
}).collect(Collectors.toList());
|
|
|
return result;
|