This commit is contained in:
@ -16,6 +16,7 @@ import com.gh.common.AppExecutor;
|
||||
import com.gh.common.constant.Constants;
|
||||
import com.gh.common.exposure.ExposureEvent;
|
||||
import com.gh.common.exposure.ExposureUtils;
|
||||
import com.gh.common.exposure.meta.MetaUtil;
|
||||
import com.gh.common.history.HistoryHelper;
|
||||
import com.gh.common.util.AppDebugConfig;
|
||||
import com.gh.common.util.DataCollectionUtils;
|
||||
@ -28,6 +29,7 @@ import com.gh.common.util.NetworkUtils;
|
||||
import com.gh.common.util.PackageInstaller;
|
||||
import com.gh.common.util.PackageUtils;
|
||||
import com.gh.common.util.SPUtils;
|
||||
import com.gh.gamecenter.BuildConfig;
|
||||
import com.gh.gamecenter.entity.ApkEntity;
|
||||
import com.gh.gamecenter.entity.GameEntity;
|
||||
import com.gh.gamecenter.entity.GameUpdateEntity;
|
||||
@ -35,8 +37,10 @@ import com.gh.gamecenter.entity.HomePluggableFilterEntity;
|
||||
import com.gh.gamecenter.entity.PluginLocation;
|
||||
import com.gh.gamecenter.eventbus.EBDownloadStatus;
|
||||
import com.gh.gamecenter.manager.PackagesManager;
|
||||
import com.gh.gamecenter.manager.UserManager;
|
||||
import com.gh.gamecenter.packagehelper.PackageRepository;
|
||||
import com.google.gson.Gson;
|
||||
import com.halo.assistant.HaloApp;
|
||||
import com.lightgame.config.CommonDebug;
|
||||
import com.lightgame.download.ConnectionUtils;
|
||||
import com.lightgame.download.DataChanger;
|
||||
@ -49,6 +53,7 @@ import com.lightgame.download.DownloadStatus;
|
||||
import com.lightgame.download.DownloadStatusListener;
|
||||
import com.lightgame.download.DownloadStatusManager;
|
||||
import com.lightgame.download.FileUtils;
|
||||
import com.lightgame.download.HttpDnsManager;
|
||||
import com.lightgame.utils.Utils;
|
||||
import com.qq.gdt.action.ActionType;
|
||||
|
||||
@ -56,6 +61,7 @@ import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@ -269,6 +275,8 @@ public class DownloadManager implements DownloadStatusListener {
|
||||
downloadEntity.setUpdate(true);
|
||||
}
|
||||
|
||||
updateMetaMap();
|
||||
|
||||
downloadEntity.setPlugin(!TextUtils.isEmpty(apkEntity.getGhVersion()));
|
||||
|
||||
ExposureUtils.DownloadType downloadType = ExposureUtils.getDownloadType(apkEntity, gameEntity.getId());
|
||||
@ -929,4 +937,16 @@ public class DownloadManager implements DownloadStatusListener {
|
||||
msg.obj = url;
|
||||
sendMessageDelayed(msg, 1000);
|
||||
}
|
||||
|
||||
public static void updateMetaMap() {
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
map.put(HttpDnsManager.APP_VERSION, BuildConfig.VERSION_NAME);
|
||||
map.put(HttpDnsManager.CHANNEL, HaloApp.getInstance().getChannel());
|
||||
map.put(HttpDnsManager.GID, HaloApp.getInstance().getGid());
|
||||
map.put(HttpDnsManager.OAID, HaloApp.getInstance().getOAID());
|
||||
map.put(HttpDnsManager.USER_ID, UserManager.getInstance().getUserId());
|
||||
map.put(HttpDnsManager.IMEI, MetaUtil.INSTANCE.getIMEI());
|
||||
|
||||
HttpDnsManager.metaMap = map;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user