提交 c2be8e7c 编写于 作者: Z zhangkaixiang

adapt to media file uri

Signed-off-by: Nzhangkaixiang <zhangkaixiang5@huawei.com>
上级 67c186fb
......@@ -58,7 +58,7 @@ export default function albumTestCallbackTest(abilityContext) {
const props = {
albumName: "Static",
albumUri: "datashare:///media/album/",
albumUri: "file://media/album/",
count: 5,
};
const checkProps = async function (done, testNum, album, relativePaths) {
......
......@@ -58,7 +58,7 @@ export default function albumTestPromiseTest(abilityContext) {
const props = {
albumName: "Static",
albumUri: "datashare:///media/album/",
albumUri: "file://media/album/",
count: 5,
};
const checkProps = async function (done, testNum, album, relativePaths) {
......
......@@ -58,7 +58,7 @@ export default function mediafetchoptionsCallback(abilityContext) {
let firstObject = await fetchFileResult.getFirstObject();
const id = firstObject.id;
const uri = firstObject.uri;
const serachUri = `datashare:///media/${type}/${id}`;
const serachUri = `file://media/${type}/${id}`;
console.info(`${testNum} :uri ${uri};serachUri${serachUri})`);
let serchfetchOp = {
......
......@@ -53,7 +53,7 @@ export default function mediafetchoptionsPromise(abilityContext) {
let firstObject = await fetchFileResult.getFirstObject();
const id = firstObject.id;
const uri = firstObject.uri;
const serachUri = `datashare:///media/${type}/${id}`;
const serachUri = `file://media/${type}/${id}`;
console.info(`${testNum} :uri ${uri};serachUri${serachUri})`);
let serchfetchOp = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册