Commit 6ba03d37 by mReturn

fix 编辑视频

parent 5d6b971b
...@@ -2,7 +2,6 @@ package com.dayu.learncenter.presenter.pubcourse; ...@@ -2,7 +2,6 @@ package com.dayu.learncenter.presenter.pubcourse;
import android.text.TextUtils; import android.text.TextUtils;
import com.cjt2325.cameralibrary.util.LogUtil;
import com.dayu.base.api.Api; import com.dayu.base.api.Api;
import com.dayu.base.api.BaseApiFactory; import com.dayu.base.api.BaseApiFactory;
import com.dayu.event.UserInfo; import com.dayu.event.UserInfo;
...@@ -67,7 +66,7 @@ public class PubCoursePresenter extends PubCourseContract.Presenter { ...@@ -67,7 +66,7 @@ public class PubCoursePresenter extends PubCourseContract.Presenter {
if (videoPath.startsWith("http")) if (videoPath.startsWith("http"))
videoUrl = videoPath; videoUrl = videoPath;
if (TextUtils.isEmpty(videoUrl)) { if (TextUtils.isEmpty(videoUrl)) {
mPubData.courseTimes = CommonUtils.getVideoLength(videoPath); mEditData.courseTimes = CommonUtils.getVideoLength(videoPath);
try { try {
uploadVideo(videoPath,true); uploadVideo(videoPath,true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment