mirror of
https://gitee.com/wkeyuan/DWSurvey.git
synced 2024-11-29 18:49:26 +08:00
自定义发布时的路径地址
This commit is contained in:
parent
d1cc1004cd
commit
8b3bc24f64
@ -11,6 +11,7 @@ import javax.servlet.http.HttpServletResponseWrapper;
|
|||||||
import net.diaowen.common.utils.DiaowenProperty;
|
import net.diaowen.common.utils.DiaowenProperty;
|
||||||
import net.diaowen.common.utils.DwWriteFile;
|
import net.diaowen.common.utils.DwWriteFile;
|
||||||
import net.diaowen.common.utils.SpringContextHolder;
|
import net.diaowen.common.utils.SpringContextHolder;
|
||||||
|
import net.diaowen.dwsurvey.config.DWSurveyConfig;
|
||||||
import net.diaowen.dwsurvey.entity.SurveyDirectory;
|
import net.diaowen.dwsurvey.entity.SurveyDirectory;
|
||||||
import net.diaowen.dwsurvey.service.impl.SurveyDirectoryManagerImpl;
|
import net.diaowen.dwsurvey.service.impl.SurveyDirectoryManagerImpl;
|
||||||
import org.jsoup.Connection;
|
import org.jsoup.Connection;
|
||||||
@ -26,8 +27,8 @@ public class DWSurveyBuild {
|
|||||||
|
|
||||||
public void devSurvey(HttpServletRequest request,String surveyId,String type) throws Exception{
|
public void devSurvey(HttpServletRequest request,String surveyId,String type) throws Exception{
|
||||||
String reqTarget = request.getScheme()+"://"+request.getServerName()+(request.getServerPort()==80?"":":"+request.getServerPort())+request.getContextPath();
|
String reqTarget = request.getScheme()+"://"+request.getServerName()+(request.getServerPort()==80?"":":"+request.getServerPort())+request.getContextPath();
|
||||||
if("custom".equals(DiaowenProperty.SURVEYURL_MODE)){
|
if("custom".equals(DWSurveyConfig.DWSURVEY_WEB_BACK_SITE_MODE)){
|
||||||
reqTarget = DiaowenProperty.WEBSITE_URL;
|
reqTarget = DWSurveyConfig.DWSURVEY_WEB_BACK_SITE_URL;
|
||||||
}
|
}
|
||||||
reqTarget =reqTarget+"/toHtml";
|
reqTarget =reqTarget+"/toHtml";
|
||||||
Map<String, String> map=new HashMap<String, String>();
|
Map<String, String> map=new HashMap<String, String>();
|
||||||
|
Loading…
Reference in New Issue
Block a user