未验证 提交 a6d1815d 编写于 作者: O openharmony_ci 提交者: Gitee

!8593 【acts】适配媒体库URI调整为file类型

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