diff --git a/pages/SDKIntegration/Lottie/index.nvue b/pages/SDKIntegration/Lottie/index.nvue index 96778ccacc7444944f2c8083916750143b910c57..579be96f6bc93129f29a3d5516e8686500279f73 100644 --- a/pages/SDKIntegration/Lottie/index.nvue +++ b/pages/SDKIntegration/Lottie/index.nvue @@ -29,7 +29,7 @@ widthNum: 750, heightNum: 200, comShow: true, - animUrl: "anim_a.json" + animUrl: "/static/anim_a.json" } }, diff --git a/uni_modules/uts-animation-view/utssdk/app-android/index.vue b/uni_modules/uts-animation-view/utssdk/app-android/index.vue index 70ee82923ff7b76bd9fcd59fcb36e0acf8401ab1..0e674ae37cb6962f0b1804ed32db75226ab56a89 100644 --- a/uni_modules/uts-animation-view/utssdk/app-android/index.vue +++ b/uni_modules/uts-animation-view/utssdk/app-android/index.vue @@ -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) } }