dxh 5 years ago
parent
commit
10b23bf322

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

35
import com.electric.chargingpile.application.MainApplication;
35
import com.electric.chargingpile.application.MainApplication;
36
import com.electric.chargingpile.data.AuthSignBean;
36
import com.electric.chargingpile.data.AuthSignBean;
37
import com.electric.chargingpile.data.TalkRecommendBean;
37
import com.electric.chargingpile.data.TalkRecommendBean;
38
import com.electric.chargingpile.manager.ProfileManager;
38
import com.electric.chargingpile.util.BarColorUtil;
39
import com.electric.chargingpile.util.BarColorUtil;
39
import com.electric.chargingpile.util.JsonUtils;
40
import com.electric.chargingpile.util.JsonUtils;
40
import com.electric.chargingpile.util.LoadingDialog;
41
import com.electric.chargingpile.util.LoadingDialog;
214
        map.put("fileNames", fileNames);
215
        map.put("fileNames", fileNames);
215
        Log.e("fileNameDir fileName", fileNames);
216
        Log.e("fileNameDir fileName", fileNames);
216
        map.put("targetType", "23");//23视频/24图片
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
        OkHttpUtils
221
        OkHttpUtils
218
                .post()
222
                .post()
219
                .params(map)
223
                .params(map)
358
362
359
                Glide
363
                Glide
360
                        .with(this)
364
                        .with(this)
361
                        .load(Uri.fromFile(new File(media.getCompressPath())))
365
                        .load(Uri.fromFile(new File(media.getPath())))
362
                        .apply(new RequestOptions().centerCrop())
366
                        .apply(new RequestOptions().centerCrop())
363
                        .into(mItemVideo);
367
                        .into(mItemVideo);
364
                mItemVideoLl.setVisibility(View.VISIBLE);
368
                mItemVideoLl.setVisibility(View.VISIBLE);

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

426
            String s = talkRecommendBean.imgUrls.toString();
426
            String s = talkRecommendBean.imgUrls.toString();
427
            LogUtils.d("demo 11", s);
427
            LogUtils.d("demo 11", s);
428
            imageAdapter.addData(talkRecommendBean.imgUrls);
428
            imageAdapter.addData(talkRecommendBean.imgUrls);
429
            zoomingViewpager.getAdapter().notifyDataSetChanged();
429
        } else {
430
        } else {
430
            if (upVideoView2 != null && !TextUtils.isEmpty(talkRecommendBean.videoUrl)) {
431
            if (upVideoView2 != null && !TextUtils.isEmpty(talkRecommendBean.videoUrl)) {
431
                String videoUrl = talkRecommendBean.videoUrl;
432
                String videoUrl = talkRecommendBean.videoUrl;

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

35
        }
35
        }
36
        return false;
36
        return false;
37
    }
37
    }
38
39
}
38
}