提交 01365df5 编写于 作者: 打打卡夫卡's avatar 打打卡夫卡

修改 lottie 资源路径为/static/xxx

上级 dda89f66
......@@ -29,7 +29,7 @@
widthNum: 750,
heightNum: 200,
comShow: true,
animUrl: "anim_a.json"
animUrl: "/static/anim_a.json"
}
},
......
......@@ -97,7 +97,7 @@
lottieAnimationView.setAnimationFromUrl(newPath)
} else {
// 默认是static了
var realJsonPath = UTSAndroid.getResourcePath("static/" + newPath)
var realJsonPath = UTSAndroid.getResourcePath(newPath)
lottieAnimationView.setAnimation(new FileInputStream(realJsonPath),newPath)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册