提取DATA_HOST
This commit is contained in:
@ -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<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user