From 95ca47afec682be5e33a87168e4f91202dfca8c3 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 03 六月 2024 19:59:33 +0800
Subject: [PATCH] 合并

---
 src/assets/methods/resources.js |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/src/assets/methods/resources.js b/src/assets/methods/resources.js
index 4a2db4f..37168bb 100644
--- a/src/assets/methods/resources.js
+++ b/src/assets/methods/resources.js
@@ -1,6 +1,19 @@
-import config from "../js/config"
-const getResourcePath = (md5) => {
-  return  config.requestCtx + '/file/api/ApiDownload?md5=' + md5
+import fileApi from '@/assets/js/middleGround/api/file'
+export const getResourcePath = async(md5,appRefCode = "jingshieke") => {
+  let path = ''
+  await fileApi.getAliVod({
+    md5,appRefCode
+  }).then(res => {
+    if(res.data.length) {
+      path =  res.data
+    } else {
+      path =   process.env.VUE_APP_API_URL + '/file/api/ApiDownload?md5=' + md5
+    }
+  })
+  return path
+}
+const MT = {
+  getResourcePath
 }
 
-export default getResourcePath
\ No newline at end of file
+export default MT
\ No newline at end of file

--
Gitblit v1.9.1