|
@@ -27,7 +27,7 @@ import styles from './index.module.less'
|
|
|
import { useRect } from '@vant/use'
|
|
|
import { Vue3Lottie } from 'vue3-lottie'
|
|
|
import { getRandomKey, musicBuy } from '../music'
|
|
|
-import { state } from '@/state'
|
|
|
+import { getOssUploadUrl, state } from '@/state'
|
|
|
import { useEventTracking } from '@/helpers/hooks'
|
|
|
import ColSticky from '@/components/col-sticky'
|
|
|
import { browser, moneyFormat } from '@/helpers/utils'
|
|
@@ -183,13 +183,13 @@ export default defineComponent({
|
|
|
const files = base64ToBlob(file)
|
|
|
|
|
|
formData.append('file', files, fileName)
|
|
|
- const ossUploadUrl = 'https://ks3-cn-beijing.ksyuncs.com/cloud-coach'
|
|
|
+ const ossUploadUrl = state.ossUploadUrl + 'cloud-coach'
|
|
|
await umiRequest(ossUploadUrl, {
|
|
|
method: 'POST',
|
|
|
data: formData
|
|
|
})
|
|
|
Toast.clear()
|
|
|
- const imgurl = ossUploadUrl + '/' + keyTime
|
|
|
+ const imgurl = getOssUploadUrl('cloud-coach') + keyTime
|
|
|
|
|
|
await request.post(state.platformApi + '/open/music/sheet/img', {
|
|
|
data: { musicSheetId: musicDetail.value.id, musicImg: imgurl }
|