增加支付/缴费/提现
This commit is contained in:
parent
16ad213310
commit
985927bd26
@ -518,7 +518,19 @@ public class PicturesTemplateServiceImpl extends DefaultBaseService implements I
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SuccessResultData buiderPicturesTemplate(String picturesTemplateCode) throws Exception {
|
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>("");
|
SuccessResultData<String> result = new SuccessResultData<String>("");
|
||||||
if(base64 != null ) {
|
if(base64 != null ) {
|
||||||
result.setData(base64);
|
result.setData(base64);
|
||||||
|
Loading…
Reference in New Issue
Block a user