| | |
| | | return new FebsResponse().success().data(apiCommonSetVo); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "小程序首页头部背景") |
| | | @GetMapping(value = "/indexHeadPng") |
| | | public FebsResponse indexHeadPng() { |
| | | String pngUrl = commonService.getDicByTypeAndCode( |
| | | CommonDictionaryEnum.VIDEO_URL_INDEX.getType(), |
| | | CommonDictionaryEnum.VIDEO_URL_INDEX.getCode() |
| | | ); |
| | | if (pngUrl == null) { |
| | | pngUrl = ""; |
| | | } |
| | | return new FebsResponse().success().data(pngUrl); |
| | | } |
| | | |
| | | @ApiOperation(value = "小程序开屏页设置") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiIndexSetVo.class) |
| | |
| | | String base64Str = java.util.Base64.getEncoder().encodeToString(fileBytes); |
| | | String imageSuffix = "." + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".") + 1); |
| | | String imageNames = System.currentTimeMillis() + IdUtil.simpleUUID() + imageSuffix; |
| | | String imageName = "hc/" + imageNames; |
| | | String imageName = "clothes/" + imageNames; |
| | | OssUtils.uploadFileWithBase64(base64Str, imageName); |
| | | String bucket_name = "https://excoin.oss-cn-hangzhou.aliyuncs.com"; |
| | | String url = bucket_name + "/" + imageName; |
| | |
| | | |
| | | String imageFuffix = ".jpg"; |
| | | String imageNames = System.currentTimeMillis() + IdUtil.simpleUUID() + imageFuffix; |
| | | String imageName = "hc/" + imageNames; |
| | | String imageName = "clothes/" + imageNames; |
| | | OssUtils.uploadFileWithBase64(base64Str, imageName); |
| | | String bucket_name ="https://excoin.oss-cn-hangzhou.aliyuncs.com"; |
| | | String url = bucket_name + "/" + imageName; |