yujian
2020-05-09 7e7db2fa55a9a3af46d4fd8ede0dee147f101d64
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserRankingsServiceImpl.java
@@ -29,6 +29,7 @@
import com.yeshi.fanli.exception.user.UserRankingsException;
import com.yeshi.fanli.service.inter.count.HongBaoV2CountService;
import com.yeshi.fanli.service.inter.user.UserRankingsService;
import com.yeshi.fanli.util.FilePathEnum;
import com.yeshi.fanli.util.StringUtil;
import com.yeshi.fanli.vo.order.HongBaoV2VO;
@@ -134,7 +135,7 @@
      String type = contentType.substring(contentType.indexOf("/") + 1);
      // 上传文件相对位置
      String fileUrl = "userRankings/" + UUID.randomUUID().toString().replace("-", "") + "." + type;
      String fileUrl = FilePathEnum.userRankings.getPath() + UUID.randomUUID().toString().replace("-", "") + "." + type;
      InputStream inputStream = file.getInputStream();
      String uploadFilePath = COSManager.getInstance().uploadFile(inputStream, fileUrl).getUrl();
@@ -254,7 +255,7 @@
         System.out.println("name" + name);
         String prefix = name.substring(name.lastIndexOf(".") + 1);
         // 上传文件相对位置
         String fileUrl = "userRankings/" + UUID.randomUUID().toString().replace("-", "") + "." + prefix;
         String fileUrl = FilePathEnum.userRankings.getPath() + UUID.randomUUID().toString().replace("-", "") + "." + prefix;
         System.out.println(fileUrl);
         FileInputStream is = new FileInputStream(filePic);