充值逻辑
This commit is contained in:
parent
7d63869d44
commit
cceb697739
@ -6,7 +6,6 @@ import android.widget.TextView;
|
|||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.GridLayoutManager;
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
@ -50,13 +49,24 @@ public class DrawerRecommendViewHolder extends RecyclerView.ViewHolder {
|
|||||||
} else {
|
} else {
|
||||||
IMLoginModel userInfo = IMLoginManager.get(itemView.getContext()).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(itemView.getContext()).getUserInfo();
|
||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
htmlUrl.append(CommonAppConfig.HOST)
|
if (TextUtils.equals(model.getSrc(), "recharge")) {
|
||||||
.append("/")
|
htmlUrl.append("recharge");
|
||||||
.append(model.getSrc())
|
} else if (model.getSrc().contains("?")) {
|
||||||
.append("&uid=")
|
htmlUrl.append(model.getSrc())
|
||||||
.append(userInfo.getId())
|
.append("&uid=")
|
||||||
.append("&token=")
|
.append(userInfo.getId())
|
||||||
.append(userInfo.getToken());
|
.append("&token=")
|
||||||
|
.append(userInfo.getToken());
|
||||||
|
} else {
|
||||||
|
htmlUrl.append(CommonAppConfig.HOST)
|
||||||
|
.append("/")
|
||||||
|
.append(model.getSrc())
|
||||||
|
.append("&uid=")
|
||||||
|
.append(userInfo.getId())
|
||||||
|
.append("&token=")
|
||||||
|
.append(userInfo.getToken());
|
||||||
|
}
|
||||||
|
|
||||||
Bus.get().post(new CustomDrawerPopupEvent()
|
Bus.get().post(new CustomDrawerPopupEvent()
|
||||||
.setDisMiss(true)
|
.setDisMiss(true)
|
||||||
.setHtmlUrl(htmlUrl.toString())
|
.setHtmlUrl(htmlUrl.toString())
|
||||||
|
@ -754,15 +754,20 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void showerHtml(String htmlUrl, boolean screen) {
|
public void showerHtml(String htmlUrl, boolean screen) {
|
||||||
if (!screen) {
|
if (TextUtils.equals(htmlUrl, "recharge")) {
|
||||||
ZhuangBanActivity.forward(mContext, htmlUrl, false);
|
RouteUtil.forwardMyCoin(mContext);
|
||||||
} else {
|
}else {
|
||||||
Bundle bundle = new Bundle();
|
if (!screen) {
|
||||||
bundle.putString("url", htmlUrl);
|
ZhuangBanActivity.forward(mContext, htmlUrl, false);
|
||||||
LiveHDDialogFragment fragment = new LiveHDDialogFragment();
|
} else {
|
||||||
fragment.setArguments(bundle);
|
Bundle bundle = new Bundle();
|
||||||
fragment.show(((LiveRyAnchorActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");
|
bundle.putString("url", htmlUrl);
|
||||||
|
LiveHDDialogFragment fragment = new LiveHDDialogFragment();
|
||||||
|
fragment.setArguments(bundle);
|
||||||
|
fragment.show(((LiveRyAnchorActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user