MCPcopy Create free account
hub / github.com/diyhi/bbs / domain

Method domain

src/main/java/cms/utils/WebUtil.java:593–600  ·  view source on GitHub ↗

获取前端地址 @param request 请求信息 @return

(HttpServletRequest request)

Source from the content-addressed store, hash-verified

591 * @return
592 */
593 public static String domain(HttpServletRequest request){
594 String domain = getOriginDomain(request);
595 if(domain == null || domain.trim().isEmpty()){
596 domain = getUrl(request);
597 }
598
599 return domain;
600 }
601
602 /**
603 *

Callers 1

getLoginLinkMethod · 0.45

Calls 3

getOriginDomainMethod · 0.95
getUrlMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected