|
@@ -33,6 +33,7 @@ import com.sheep.gamegroup.model.api.IDownload;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
import com.sheep.gamegroup.model.entity.DialogEntity;
|
|
import com.sheep.gamegroup.model.entity.DialogEntity;
|
|
|
import com.sheep.gamegroup.model.entity.Ext;
|
|
import com.sheep.gamegroup.model.entity.Ext;
|
|
|
|
|
+import com.sheep.gamegroup.model.entity.InputAndUrlList;
|
|
|
import com.sheep.gamegroup.model.entity.ScreenshotsEntity;
|
|
import com.sheep.gamegroup.model.entity.ScreenshotsEntity;
|
|
|
import com.sheep.gamegroup.model.entity.TaskAcceptedEty;
|
|
import com.sheep.gamegroup.model.entity.TaskAcceptedEty;
|
|
|
import com.sheep.gamegroup.model.entity.TaskChild;
|
|
import com.sheep.gamegroup.model.entity.TaskChild;
|
|
@@ -56,8 +57,10 @@ import com.sheep.gamegroup.util.LocationUtils;
|
|
|
import com.sheep.gamegroup.util.LogUtil;
|
|
import com.sheep.gamegroup.util.LogUtil;
|
|
|
import com.sheep.gamegroup.util.MyListview;
|
|
import com.sheep.gamegroup.util.MyListview;
|
|
|
import com.sheep.gamegroup.util.PngUtil;
|
|
import com.sheep.gamegroup.util.PngUtil;
|
|
|
|
|
+import com.sheep.gamegroup.util.RequestCodeConstants;
|
|
|
import com.sheep.gamegroup.util.SelfCountDownTimer;
|
|
import com.sheep.gamegroup.util.SelfCountDownTimer;
|
|
|
import com.sheep.gamegroup.util.SysAppUtil;
|
|
import com.sheep.gamegroup.util.SysAppUtil;
|
|
|
|
|
+import com.sheep.gamegroup.util.TestUtil;
|
|
|
import com.sheep.gamegroup.util.TimeUtil;
|
|
import com.sheep.gamegroup.util.TimeUtil;
|
|
|
import com.sheep.gamegroup.util.UMConfigUtils;
|
|
import com.sheep.gamegroup.util.UMConfigUtils;
|
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
@@ -1325,17 +1328,16 @@ public class TaskDetailAct extends AbsChooseImageActivity implements TaskDetailC
|
|
|
|
|
|
|
|
private int commitScreenShotTaskId;
|
|
private int commitScreenShotTaskId;
|
|
|
|
|
|
|
|
|
|
+ private String unique_identification;
|
|
|
@Override
|
|
@Override
|
|
|
protected void onSetNetImageUrl(String data) {
|
|
protected void onSetNetImageUrl(String data) {
|
|
|
setLoaddingText("提交中");
|
|
setLoaddingText("提交中");
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
|
|
- jsonObject.put("id", commitScreenShotTaskId);
|
|
|
|
|
- jsonObject.put("screenshots", data + "");
|
|
|
|
|
- jsonObject.put("remark", /*taskEty.getRemarks() +*/ "");
|
|
|
|
|
- jsonObject.put("package_name", taskEty.getPackage_names() + "");
|
|
|
|
|
- jsonObject.put("status", TaskAcceptedEty.STATUS_SUBMIT + "");
|
|
|
|
|
- jsonObject.put("device", SysAppUtil.getUserAgentOrDeviceInfo());
|
|
|
|
|
- presenter.taskStatus(jsonObject);
|
|
|
|
|
|
|
+ commitScreenShotData(data, unique_identification);
|
|
|
|
|
+ unique_identification = null;
|
|
|
|
|
+ }
|
|
|
|
|
+ //提交截图数据
|
|
|
|
|
+ private void commitScreenShotData(String data, String unique_identification) {
|
|
|
|
|
+ presenter.taskStatus(commitScreenShotTaskId, data+"", "",taskEty.getPackage_names(), String.valueOf(TaskAcceptedEty.STATUS_SUBMIT), SysAppUtil.getUserAgentOrDeviceInfo(), unique_identification);
|
|
|
taskEty.setScreenshots(data);
|
|
taskEty.setScreenshots(data);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1366,6 +1368,20 @@ public class TaskDetailAct extends AbsChooseImageActivity implements TaskDetailC
|
|
|
//图片展示
|
|
//图片展示
|
|
|
isFresh = true;
|
|
isFresh = true;
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case RequestCodeConstants.REQUEST_CODE_GE_DATA:
|
|
|
|
|
+ if(resultCode == RESULT_OK) {
|
|
|
|
|
+ Object object = DataUtil.getInstance().getData(InputAndUrlList.class.getSimpleName());
|
|
|
|
|
+ if(TestUtil.isDev()) LogUtil.println("GET_DATA", JSONObject.toJSONString(object));
|
|
|
|
|
+ if(object instanceof InputAndUrlList) {
|
|
|
|
|
+ unique_identification = ((InputAndUrlList) object).getInput();
|
|
|
|
|
+ //上传图片
|
|
|
|
|
+ photoCount = DEFAULT_MAX_COUNT;
|
|
|
|
|
+ photos = ((InputAndUrlList) object).getList();
|
|
|
|
|
+ upImages();
|
|
|
|
|
+ } else
|
|
|
|
|
+ G.showToast(R.string.coming_soon);
|
|
|
|
|
+ }
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
DataUtil.getInstance().onActivityResult(requestCode, resultCode, data);
|
|
DataUtil.getInstance().onActivityResult(requestCode, resultCode, data);
|
|
|
break;
|
|
break;
|