| | |
| | | |
| | | import com.yami.trading.bean.model.C2cPaymentMethodConfig; |
| | | import com.yami.trading.bean.model.C2cTranslate; |
| | | import com.yami.trading.common.constants.Constants; |
| | | import com.yami.trading.common.domain.Result; |
| | | import com.yami.trading.common.exception.BusinessException; |
| | | import com.yami.trading.common.util.StringUtils; |
| | |
| | | throw new BusinessException("支付方式模板不存在"); |
| | | } |
| | | if (StringUtils.isNotEmpty(config.getMethodImg())) { |
| | | String path = awsS3OSSFileService.getUrl(config.getMethodImg()); |
| | | String path = Constants.IMAGES_HTTP+config.getMethodImg(); |
| | | config.setMethodImg(path); |
| | | } |
| | | return Result.succeed(this.c2cTranslateService.translatePmc(config, language)); |