This commit is contained in:
hch 2024-01-17 11:26:15 +08:00
parent 5b813aff88
commit 3a1268aac7

View File

@ -128,18 +128,20 @@ public class CompensateActivity extends AbsActivity {
if (!StringUtils.isEmpty(mBanner)) { if (!StringUtils.isEmpty(mBanner)) {
ImgLoader.display(mContext, mBanner, imgContent); ImgLoader.display(mContext, mBanner, imgContent);
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
StringBuffer urlBuffer = new StringBuffer();
urlBuffer.append(link).append("&uid=").append(userInfo.getId()).append("&token=").append(userInfo.getToken()).append("&isZh=").append(WordUtil.isNewZh() ? "1" : 0);
findViewById(R.id.lt_advertisement).setVisibility(View.VISIBLE); findViewById(R.id.lt_advertisement).setVisibility(View.VISIBLE);
findViewById(R.id.lt_advertisement).setOnClickListener(new View.OnClickListener() {
@Override if (!StringUtils.isEmpty(link)) {
public void onClick(View v) { IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
mContext.startActivity(new Intent(mContext, ZhuangBanActivity.class).putExtra("url", urlBuffer.toString())); StringBuffer urlBuffer = new StringBuffer();
} urlBuffer.append(link).append("&uid=").append(userInfo.getId()).append("&token=").append(userInfo.getToken()).append("&isZh=").append(WordUtil.isNewZh() ? "1" : 0);
});
findViewById(R.id.lt_advertisement).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mContext.startActivity(new Intent(mContext, ZhuangBanActivity.class).putExtra("url", urlBuffer.toString()));
}
});
}
} }
} }