|
|
|
|
305
|
String fileNames = "";
|
305
|
String fileNames = "";
|
306
|
for (int i = 0; i < Bimp.tempSelectBitmap.size(); i++) {
|
306
|
for (int i = 0; i < Bimp.tempSelectBitmap.size(); i++) {
|
307
|
// File tempFile = new File(Bimp.tempSelectBitmap.get(i).imagePath.trim());
|
307
|
// File tempFile = new File(Bimp.tempSelectBitmap.get(i).imagePath.trim());
|
308
|
String fileNameDir = Bimp.tempSelectBitmap.get(i).imagePath;
|
|
|
309
|
String fileName = fileNameDir.substring(fileNameDir.lastIndexOf("\"")+1);
|
|
|
|
|
308
|
String fileNameDir = Bimp.tempSelectBitmap.get(i).getImagePath();
|
|
|
309
|
|
|
|
310
|
Log.e("fileNameDir", fileNameDir);
|
|
|
311
|
String fileName = fileNameDir.substring(fileNameDir.lastIndexOf("/")+1);
|
|
|
312
|
Log.e("fileNameDir fileName", fileName);
|
310
|
if (TextUtils.isEmpty(fileNames))
|
313
|
if (TextUtils.isEmpty(fileNames))
|
311
|
fileNames = fileName;
|
314
|
fileNames = fileName;
|
312
|
else
|
315
|
else
|
|
|
|
|
315
|
String url = MainApplication.urlNew + "/topic/sign.do";
|
318
|
String url = MainApplication.urlNew + "/topic/sign.do";
|
316
|
Map<String, String> map = new HashMap<>();
|
319
|
Map<String, String> map = new HashMap<>();
|
317
|
map.put("fileNames", fileNames);
|
320
|
map.put("fileNames", fileNames);
|
|
|
321
|
Log.e("fileNameDir fileName", fileNames);
|
318
|
map.put("expiration", (System.currentTimeMillis() + 1800) + "");
|
322
|
map.put("expiration", (System.currentTimeMillis() + 1800) + "");
|
319
|
map.put("targetType", "23");
|
|
|
320
|
OkHttpUtils.get().params(map).url(url).build().connTimeOut(6000).readTimeOut(6000).execute(new StringCallback() {
|
|
|
|
|
323
|
map.put("targetType", "24");//23视频/24图片
|
|
|
324
|
OkHttpUtils.post().params(map).url(url).build().connTimeOut(6000).readTimeOut(6000).execute(new StringCallback() {
|
321
|
@Override
|
325
|
@Override
|
322
|
public void onError(Call call, Exception e) {
|
326
|
public void onError(Call call, Exception e) {
|
323
|
}
|
327
|
}
|