提取DATA_HOST

This commit is contained in:
huangzhuanghua
2016-11-07 11:25:56 +08:00
parent d5a63da257
commit 54f2959d6a
9 changed files with 28 additions and 23 deletions

View File

@ -6,6 +6,7 @@ import com.android.volley.Request.Method;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.gh.base.AppController;
import com.gh.common.constant.Config;
import com.gh.common.util.DeviceUtils;
import com.gh.common.util.PackageUtils;
import com.gh.common.util.TokenUtils;
@ -141,7 +142,7 @@ public class DataCollectionManager {
Map<String, String> params = new HashMap<>();
params.put("type", type);
params.put("data", new JSONObject(map).toString());
String url = "http://data.ghzhushou.com/collection/upload2";
String url = Config.DATA_HOST + "collection/upload2";
JSONObject body = new JSONObject(params);
JsonObjectExtendedRequest request = new JsonObjectExtendedRequest(
Method.POST, url, body.toString(),
@ -196,7 +197,7 @@ public class DataCollectionManager {
return;
}
isUploading = true;
String url = "http://data.ghzhushou.com/collection/upload";
String url = Config.DATA_HOST + "collection/upload";
final List<String> ids = new ArrayList<>();