feat: Update default public base URL in RequestUrlUtils to include path for H5 resources
This commit is contained in:
@@ -63,7 +63,7 @@ class OutdoorFairControllerTest
|
|||||||
request.addHeader("Host", "127.0.0.1:9091");
|
request.addHeader("Host", "127.0.0.1:9091");
|
||||||
|
|
||||||
assertEquals(
|
assertEquals(
|
||||||
"http://39.98.44.136:6024/h5/outdoor-fair/company.html?fairId=12&companyId=34",
|
"http://39.98.44.136:6024/shihezi/h5/outdoor-fair/company.html?fairId=12&companyId=34",
|
||||||
buildCompanyH5Url(request, 12L, 34L));
|
buildCompanyH5Url(request, 12L, 34L));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import javax.servlet.http.HttpServletRequest;
|
|||||||
public final class RequestUrlUtils
|
public final class RequestUrlUtils
|
||||||
{
|
{
|
||||||
/** 反向代理未透传公开地址时使用的默认访问地址(不带末尾斜杠,便于拼接路径)。 */
|
/** 反向代理未透传公开地址时使用的默认访问地址(不带末尾斜杠,便于拼接路径)。 */
|
||||||
private static final String DEFAULT_PUBLIC_BASE_URL = "http://39.98.44.136:6024";
|
private static final String DEFAULT_PUBLIC_BASE_URL = "http://39.98.44.136:6024/shihezi";
|
||||||
|
|
||||||
private RequestUrlUtils()
|
private RequestUrlUtils()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user