1:修改群聊可以不充值发送消息

2:修改群聊设置不用退出多次
This commit is contained in:
2025-12-03 11:44:20 +08:00
parent a4c2fdb859
commit e0f6dff1d6
2 changed files with 6 additions and 2 deletions

View File

@@ -1093,6 +1093,9 @@ public abstract class BaseMvpActivity<P extends IPresenter, VDB extends ViewData
@Subscribe(threadMode = ThreadMode.MAIN)
public void onEvent(ChatInfo event) {
if(ActivityUtils.getTopActivity() instanceof WebViewActivity){
return;
}
String id = event.getId().replace("g", "");
Intent intent = new Intent(this, WebViewActivity.class);
intent.putExtra("url", String.format(WebUrlConstants.INSTANCE.getWEB_SET_GROUP_URL(), SpUtil.getToken(), id));

View File

@@ -29,6 +29,7 @@ import androidx.fragment.app.FragmentManager;
import com.alibaba.android.arouter.launcher.ARouter;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.tencent.imsdk.v2.V2TIMConversation;
import com.tencent.imsdk.v2.V2TIMManager;
import com.tencent.qcloud.tuicore.TUIConstants;
import com.tencent.qcloud.tuicore.TUICore;
@@ -267,7 +268,7 @@ public class InputView extends LinearLayout implements View.OnClickListener, Tex
private boolean isChock(){
userInd userInfo = getUserInfo();
if (userInfo != null) {
if (userInfo != null && mChatInfo.getType()==1) {
if (userInfo.getIs_can_chat() == 0 && userInfo.getCan_chat_money() > 0) {
Toast.makeText(getContext(), "充值不足"+userInfo.getCan_chat_money()+"元,您无法发送消息", Toast.LENGTH_LONG).show();
ARouter.getInstance().build("/modulevocal/RechargeActivity").navigation();
@@ -275,7 +276,7 @@ public class InputView extends LinearLayout implements View.OnClickListener, Tex
}
return true;
}
return false;
return true;
}
protected void init() {