闫增涛
2024-06-12 5502440dd8d7c8f7d911904150d14bdfc2c35944
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 != "" && res?.data != undefined) {
        path = res.data;
      } else {
        path = process.env.VUE_APP_API_URL + "/file/api/ApiDownload?md5=" + md5;
      }
    });
  return path;
};
const MT = {
  getResourcePath,
};
 
export default MT;