| | |
| | | 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 = (md5,appRefCode = "jingshieke") => { |
| | | fileApi.getAliVod({ |
| | | md5,appRefCode |
| | | }).then(res => { |
| | | console.log('path',res); |
| | | if(res.data) { |
| | | return res.data |
| | | } else { |
| | | return process.env.VUE_APP_API_URL + '/file/api/ApiDownload?md5=' + md5 |
| | | } |
| | | }) |
| | | |
| | | } |
| | | const MT = { |
| | | getResourcePath |
| | | } |
| | | |
| | | export default getResourcePath |
| | | export default MT |