Authored by chaogeng

修改背景图

package com.yoho.activity.queue.service.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
... ... @@ -10,6 +12,7 @@ import org.springframework.stereotype.Service;
import com.yoho.activity.common.utils.DateUtils;
import com.yoho.activity.queue.service.IActivitySettingService;
import com.yoho.core.common.helpers.ImagesHelper;
import com.yoho.error.exception.ServiceException;
import com.yoho.queue.dal.IDrawlineActivityDAO;
import com.yoho.queue.dal.IDrawlineActivityLuckydrawDAO;
... ... @@ -110,7 +113,15 @@ public class ActivitySettingServiceImpl implements IActivitySettingService {
rspBO.setTopBanner(activity.getTopBanner());
if(StringUtils.isNotEmpty(bgStyle)){
String[] bgStyles = bgStyle.split(",");
rspBO.setBgStyle(Arrays.asList(bgStyles));
List<String> bgStyleList = new ArrayList<String>();
if(bgStyles != null && bgStyles.length != 0){
for(String style : bgStyles){
String bgStyleStr = ImagesHelper.template(style, "activity", 1);
bgStyleList.add(bgStyleStr);
}
}
rspBO.setBgStyle(bgStyleList);
}
return rspBO;
}
... ...