增加支付/缴费/提现

This commit is contained in:
cuibaocheng 2021-09-02 15:10:34 +08:00
parent 16ad213310
commit 985927bd26

View File

@ -518,7 +518,19 @@ public class PicturesTemplateServiceImpl extends DefaultBaseService implements I
@Override
public SuccessResultData buiderPicturesTemplate(String picturesTemplateCode) throws Exception {
String base64 = iPicturesTemplateBuildingService.buildingPictures(picturesTemplateCode, null);
PicturesTemplateDTO templateDTO = getPicturesTemplateByCode(picturesTemplateCode);
List<PicturesTemplateAreaDTO> areaList = iPicturesTemplateAreaService.getPicturesTemplateAreaByPicturesTemplateId(templateDTO.getPicturesTemplateId());
Map<String, String> params = new HashMap<String, String>();
for(PicturesTemplateAreaDTO areaDto : areaList) {
String content = "2".equals(areaDto.getTemplateAreaServerLink()) ? areaDto.getTemplateAreaFile() : areaDto.getTemplateAreaFontValue();
/**
* 1位占位区域 , 2为需要填充的区域 (占位区域可以后台定义, 因此也可能是传入的值)
*/
if("2".equals(areaDto.getTemplateAreaType())){
params.put(areaDto.getTemplateAreaSource(), content);
}
}
String base64 = iPicturesTemplateBuildingService.buildingPictures(picturesTemplateCode, params);
SuccessResultData<String> result = new SuccessResultData<String>("");
if(base64 != null ) {
result.setData(base64);