master
sikadi 2023-11-02 19:23:56 +08:00
parent 7b6f80d6e5
commit d97f208a7d
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ public class QiNiuUpload {
System.out.println("上传失败!!");
}
return "http://"+QiNiuUtil.fileUrl(replaceAll);
return "http://s30y1cerv.hd-bkt.clouddn.com/is"+QiNiuUtil.fileUrl(replaceAll);
}

View File

@ -219,7 +219,7 @@ public class QiNiuUtil {
putRet = new Gson().fromJson(response.bodyString(), DefaultPutRet.class);
System.out.println(putRet.key);//key 文件名
System.out.println(putRet.hash);//hash 七牛返回的文件存储的地址,可以使用这个地址加七牛给你提供的前缀访问到这个视频。
return "http://"+putRet.key;
return putRet.key;
}catch (QiniuException e){
e.printStackTrace();
return "失败";