master
parent
7b6f80d6e5
commit
d97f208a7d
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 "失败";
|
||||
|
|
Loading…
Reference in New Issue