reghao hace 1 año
padre
commit
1f298be7c1
Se han modificado 2 ficheros con 7 adiciones y 8 borrados
  1. 6 6
      src/api/file.js
  2. 1 2
      src/api/video.js

+ 6 - 6
src/api/file.js

@@ -8,21 +8,21 @@ const fileApi = {
 }
 
 export function getAvatarChannelInfo() {
-  return post(fileApi.ossServerApi + '/avatar')
-}
-
-export function getVideoChannelInfo() {
-  return post(fileApi.ossServerApi + '/video')
+  return post(fileApi.ossServerApi + '/image')
 }
 
 export function getVideoCoverChannelInfo() {
-  return post(fileApi.ossServerApi + '/videocover')
+  return post(fileApi.ossServerApi + '/image')
 }
 
 export function getPhotoChannelInfo() {
   return post(fileApi.ossServerApi + '/photo')
 }
 
+export function getVideoChannelInfo() {
+  return post(fileApi.ossServerApi + '/video')
+}
+
 export function getStsToken() {
   return post(fileApi.ossStsApi)
 }

+ 1 - 2
src/api/video.js

@@ -10,7 +10,6 @@ const videoApi = {
   videoResourceApi: '/api/content/post/video/resource',
   convertVideoApi: '/api/content/post/video/convert',
 
-  videoRegionApi: '/api/content/video/region',
   videoCategoryApi: '/api/content/video/categories',
   categoryVideoApi: '/api/content/video/category',
   categoryShortVideoApi: '/api/content/video/category/short',
@@ -90,7 +89,7 @@ export function convertVideo(videoId) {
 // *********************************************************************************************************************
 // 获取视频分类
 export function videoRegion() {
-  return get(videoApi.videoRegionApi)
+  return get(videoApi.videoCategoryApi)
 }
 
 export function videoCategories() {