增加获取统一资源服务器访问地址
This commit is contained in:
parent
fdea9602a8
commit
50b36c89f5
|
|
@ -113,4 +113,17 @@ public class SysBaseInfoApi {
|
||||||
});
|
});
|
||||||
return Result.ok(result);
|
return Result.ok(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取公共资源访问地址
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("/getPublicMediaUrl")
|
||||||
|
public Result<?> getPublicMediaUrl() {
|
||||||
|
com.alibaba.fastjson.JSONObject sysParams = sysConfigApi.getByKey("public_media_url");
|
||||||
|
String mediaUrl = sysParams.getString("configValue");
|
||||||
|
return Result.ok(mediaUrl.endsWith("/") ? mediaUrl : mediaUrl + "/");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue