数据收集添加device_id字段
This commit is contained in:
@ -8,6 +8,7 @@ import com.android.volley.VolleyError;
|
||||
import com.gh.base.AppController;
|
||||
import com.gh.common.util.DeviceUtils;
|
||||
import com.gh.common.util.PackageUtils;
|
||||
import com.gh.common.util.TokenUtils;
|
||||
import com.gh.common.util.Utils;
|
||||
import com.gh.gamecenter.db.DataCollectionDao;
|
||||
import com.gh.gamecenter.db.info.DataCollectionInfo;
|
||||
@ -131,6 +132,7 @@ public class DataCollectionManager {
|
||||
mContext.getPackageName(), "TD_CHANNEL_ID");
|
||||
map.put("version", version);
|
||||
map.put("user", user);
|
||||
map.put("device_id", TokenUtils.getDeviceId(mContext));
|
||||
map.put("channel", channel);
|
||||
Map<String, String> params = new HashMap<>();
|
||||
params.put("type", type);
|
||||
@ -217,6 +219,7 @@ public class DataCollectionManager {
|
||||
dataCollectionEntity.getData());
|
||||
jsonObject.put("version", version);
|
||||
jsonObject.put("user", user);
|
||||
jsonObject.put("device_id", TokenUtils.getDeviceId(mContext));
|
||||
jsonObject.put("channel", channel);
|
||||
jsonArray.put(jsonObject.toString());
|
||||
map.put(type, jsonArray);
|
||||
|
||||
Reference in New Issue
Block a user