@@ -206,6 +206,18 @@ public class TabRecentPhotoFragment extends BaseFragment implements SwipeRefresh |
||
206 | 206 |
banner.setVisibility(View.GONE); |
207 | 207 |
return; |
208 | 208 |
} |
209 |
+ String[] imageCopy = new String[2]; |
|
210 |
+ imageCopy[0] = images[0]; |
|
211 |
+ imageCopy[1] = images[1]; |
|
212 |
+ if(TextUtils.isEmpty(images[0])||TextUtils.isEmpty(images[1])){ |
|
213 |
+ images = new String[1]; |
|
214 |
+ if(!TextUtils.isEmpty(imageCopy[0])){ |
|
215 |
+ images[0] = imageCopy[0]; |
|
216 |
+ } |
|
217 |
+ if(!TextUtils.isEmpty(imageCopy[1])){ |
|
218 |
+ images[0] =imageCopy[1]; |
|
219 |
+ } |
|
220 |
+ } |
|
209 | 221 |
banner.setVisibility(View.VISIBLE); |
210 | 222 |
|
211 | 223 |
banner.setPages(new CBViewHolderCreator<NetworkImageHolderView>() { |
@@ -51,7 +51,7 @@ public class UploadTask extends AsyncTask<String,Integer,Boolean> { |
||
51 | 51 |
photoUploadUtils.addFileParameter("photo", photo); |
52 | 52 |
photoUploadUtils.addTextParameter("user_id", Preferences.getInstance(context).getUserId()); |
53 | 53 |
photoUploadUtils.addTextParameter("group_id", groupId); |
54 |
- photoUploadUtils.addTextParameter("nickname", Preferences.getInstance(context).getUserName()); |
|
54 |
+ photoUploadUtils.addTextParameter("nickname", ""); |
|
55 | 55 |
photoUploadUtils.addTextParameter("current_id", currentPhotoId); |
56 | 56 |
LogHelper.d(TAG,"上传 UploadTask with local currentId = "+currentPhotoId); |
57 | 57 |
String result=new String(photoUploadUtils.send(),"UTF-8"); |