抢单账号配置
This commit is contained in:
@@ -73,6 +73,19 @@ public final class LbThirdIntegrationConfigUtil {
|
||||
return base + path;
|
||||
}
|
||||
|
||||
public static String resolveUserUpdateUrl(LbThirdIntegrationConfig config) {
|
||||
String base = trimTrailingSlash(requireText(config.getAdminBaseUrl(), "adminBaseUrl"));
|
||||
String path = config.getUserUpdatePath();
|
||||
if (!StringUtils.hasText(path)) {
|
||||
path = LbThirdIntegrationConstants.DEFAULT_USER_UPDATE_PATH;
|
||||
}
|
||||
path = path.trim();
|
||||
if (!path.startsWith("/")) {
|
||||
path = "/" + path;
|
||||
}
|
||||
return base + path;
|
||||
}
|
||||
|
||||
public static String resolveUserReferer(LbThirdIntegrationConfig config) {
|
||||
if (StringUtils.hasText(config.getUserReferer())) {
|
||||
return config.getUserReferer().trim();
|
||||
|
||||
Reference in New Issue
Block a user