Commit 2b73755a authored by mengcuiguang's avatar mengcuiguang

珊瑚下载任务修改loginkey内容

parent dcf4b919
......@@ -4,7 +4,9 @@ import androidx.annotation.Nullable;
import com.mints.goodmoney.BuildConfig;
import com.mints.goodmoney.MintsApplication;
import com.mints.goodmoney.common.Constant;
import com.mints.goodmoney.manager.UserManager;
import com.mints.library.utils.json.JsonUtil;
import com.tz.sdk.coral.ad.CoralAD;
import com.tz.sdk.coral.callback.CoralADListener;
import com.tz.sdk.coral.callback.h5.DownloadProcess;
......@@ -46,7 +48,7 @@ public final class CoralDownload {
{
put(CoralAD.Key.TASK_TYPE, type);
put(CoralAD.Key.ACCOUNT_ID, UserManager.getInstance().getUserID());
put(CoralAD.Key.LOGIN_KEY, UserManager.getInstance().getTokenID());
put(CoralAD.Key.LOGIN_KEY, JsonUtil.toJson(getAdMapVO()));
}
})
.load(new CoralADListener() {
......@@ -239,4 +241,10 @@ public final class CoralDownload {
void onGetDownloadProcess(DownloadProcess downloadProcess);
}
private HashMap<String, Object> getAdMapVO() {
HashMap<String, Object> vo = new HashMap<>();
vo.put("carrierType", Constant.CARRIER_CPD);
return vo;
}
}
......@@ -207,7 +207,6 @@ class ShVideoAdManager private constructor(activity: Activity) :
vo["carrierType"] = carrierType
vo["adtype"] = Constant.ADTYPE_VEDIO
vo["tid"] = MD5.GetMD5Code(System.currentTimeMillis().toString() + UserManager.getInstance().userID)
vo["adsource"] = Constant.AD_SOURCE_SH
vo["ip"] = ps.getString(Constant.CSJ_VEDIO_APPIP, "")!!
when (carrierType) {
Constant.CARRIER_VERSUS_VIDEO -> vo["coin"] = curCoin
......
......@@ -139,7 +139,7 @@ object Constant {
const val AD_SOURCE_SDHZ = "SDHZ" //闪电盒子
const val AD_SOURCE_FL = "FL" //枫岚
const val AD_SOURCE_CSJFULL = "CSJFULL"
const val AD_SOURCE_SH = "CORAL" //天卓
const val AD_SOURCE_SH = "CORAL" //珊瑚天卓
// 调用事件 0 成功 1失败 2点击 3-有效展示 4-去重
const val EVENT_TYPE_ZERO = "0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment