瀏覽代碼

Merge branch 'upload-category'

Wayne 6 年之前
父節點
當前提交
230cd97ec6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/bomostory/sceneeditmodule/screen/movie/MovieEditViewModel.kt

+ 1 - 1
src/main/java/com/bomostory/sceneeditmodule/screen/movie/MovieEditViewModel.kt

@@ -110,7 +110,7 @@ class MovieEditViewModel : ViewModel() {
         val secret = context.getString(R.string.bomo_cloud_client_secret)
         val author = project.author ?: ""
         val name = project.name ?: ""
-        val category = 0
+        val category = project.category.id
         val filePart = MultipartBody.Part.createFormData("file", file.name, RequestBody.create(MediaType.parse("video/*"), file))
         return BoMoCloud(id, secret).videoService
                 .uploadVideo(author, name, category, filePart)