dxh 5 jaren geleden
bovenliggende
commit
10b23bf322

+ 5 - 1
app/src/main/java/com/electric/chargingpile/activity/PublishTopicActivity.java

@ -35,6 +35,7 @@ import com.electric.chargingpile.R;
35 35
import com.electric.chargingpile.application.MainApplication;
36 36
import com.electric.chargingpile.data.AuthSignBean;
37 37
import com.electric.chargingpile.data.TalkRecommendBean;
38
import com.electric.chargingpile.manager.ProfileManager;
38 39
import com.electric.chargingpile.util.BarColorUtil;
39 40
import com.electric.chargingpile.util.JsonUtils;
40 41
import com.electric.chargingpile.util.LoadingDialog;
@ -214,6 +215,9 @@ public class PublishTopicActivity extends Activity implements OnClickListener {
214 215
        map.put("fileNames", fileNames);
215 216
        Log.e("fileNameDir fileName", fileNames);
216 217
        map.put("targetType", "23");//23视频/24图片
218
        String token = ProfileManager.getInstance().getKeyMessageToken(getApplicationContext());
219
        map.put("appToken", token+"");
220
        map.put("userId", MainApplication.userId);
217 221
        OkHttpUtils
218 222
                .post()
219 223
                .params(map)
@ -358,7 +362,7 @@ public class PublishTopicActivity extends Activity implements OnClickListener {
358 362
359 363
                Glide
360 364
                        .with(this)
361
                        .load(Uri.fromFile(new File(media.getCompressPath())))
365
                        .load(Uri.fromFile(new File(media.getPath())))
362 366
                        .apply(new RequestOptions().centerCrop())
363 367
                        .into(mItemVideo);
364 368
                mItemVideoLl.setVisibility(View.VISIBLE);

+ 1 - 0
app/src/main/java/com/electric/chargingpile/fragment/SvVideoShowView.java

@ -426,6 +426,7 @@ public class SvVideoShowView implements View.OnClickListener {
426 426
            String s = talkRecommendBean.imgUrls.toString();
427 427
            LogUtils.d("demo 11", s);
428 428
            imageAdapter.addData(talkRecommendBean.imgUrls);
429
            zoomingViewpager.getAdapter().notifyDataSetChanged();
429 430
        } else {
430 431
            if (upVideoView2 != null && !TextUtils.isEmpty(talkRecommendBean.videoUrl)) {
431 432
                String videoUrl = talkRecommendBean.videoUrl;

+ 0 - 1
app/src/main/java/com/electric/chargingpile/widge/photoview/ZoomingViewpager.java

@ -35,5 +35,4 @@ public class ZoomingViewpager extends ViewPager {
35 35
        }
36 36
        return false;
37 37
    }
38
39 38
}