| | |
| | | for (C2cPaymentMethod method : map.values()) { |
| | | if (null != method) { |
| | | if (StringUtils.isNotEmpty(method.getMethodImg())) { |
| | | String path = awsS3OSSFileService.getUrl(method.getMethodImg()); |
| | | String path = Constants.IMAGES_HTTP+method.getMethodImg(); |
| | | method.setMethodImg(path); |
| | | } |
| | | list.add(this.c2cTranslateService.translatePm(method, language)); |
| | |
| | | throw new BusinessException("支付方式不存在"); |
| | | } |
| | | if (StringUtils.isNotEmpty(method.getMethodImg())) { |
| | | method.setMethodImg(awsS3OSSFileService.getUrl(method.getMethodImg())); |
| | | method.setMethodImg(Constants.IMAGES_HTTP+method.getMethodImg()); |
| | | } |
| | | if (StringUtils.isNotEmpty(method.getQrcode())) { |
| | | String path = method.getQrcode(); |
| | | method.setQrcodePath(awsS3OSSFileService.getUrl(path)); |
| | | method.setQrcodePath(Constants.IMAGES_HTTP+path); |
| | | } |
| | | return Result.succeed(method); |
| | | } |
| | |
| | | C2cPaymentMethod method = resList.get(i); |
| | | if (null != method) { |
| | | if (StringUtils.isNotEmpty(method.getMethodImg())) { |
| | | String path = awsS3OSSFileService.getUrl(method.getMethodImg()); |
| | | String path = Constants.IMAGES_HTTP+method.getMethodImg(); |
| | | method.setMethodImg(path); |
| | | } |
| | | } |