fix: [kkfiew]
This commit is contained in:
parent
32dce36d16
commit
38ce56d5f9
|
@ -5,8 +5,14 @@ import java.nio.charset.StandardCharsets;
|
|||
import java.util.Base64;
|
||||
|
||||
public class KKviewUrlUtil {
|
||||
|
||||
private final static String IP = "10.129.41.185";
|
||||
|
||||
public static String toKKViewUrl(String url) {
|
||||
|
||||
|
||||
url = url.replace("localhost", IP);
|
||||
|
||||
// Step 1: Base64 编码
|
||||
String base64Url = Base64.getEncoder().encodeToString(url.getBytes(StandardCharsets.UTF_8));
|
||||
|
||||
|
@ -22,7 +28,7 @@ public class KKviewUrlUtil {
|
|||
public static void main(String[] args) {
|
||||
//云服务器
|
||||
//全局管理ip
|
||||
String kkViewUrl = toKKViewUrl("http://10.129.41.185:9000/demo/ppt/3d4ae65d-1af3-41a5-9956-5fbe6271d960.pptx");
|
||||
String kkViewUrl = toKKViewUrl("http://localhost:9000/demo/ppt/3d4ae65d-1af3-41a5-9956-5fbe6271d960.pptx");
|
||||
System.out.println(kkViewUrl);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue