1:修改群聊可以不充值发送消息
2:修改群聊设置不用退出多次
This commit is contained in:
@@ -1093,6 +1093,9 @@ public abstract class BaseMvpActivity<P extends IPresenter, VDB extends ViewData
|
|||||||
|
|
||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onEvent(ChatInfo event) {
|
public void onEvent(ChatInfo event) {
|
||||||
|
if(ActivityUtils.getTopActivity() instanceof WebViewActivity){
|
||||||
|
return;
|
||||||
|
}
|
||||||
String id = event.getId().replace("g", "");
|
String id = event.getId().replace("g", "");
|
||||||
Intent intent = new Intent(this, WebViewActivity.class);
|
Intent intent = new Intent(this, WebViewActivity.class);
|
||||||
intent.putExtra("url", String.format(WebUrlConstants.INSTANCE.getWEB_SET_GROUP_URL(), SpUtil.getToken(), id));
|
intent.putExtra("url", String.format(WebUrlConstants.INSTANCE.getWEB_SET_GROUP_URL(), SpUtil.getToken(), id));
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ import androidx.fragment.app.FragmentManager;
|
|||||||
import com.alibaba.android.arouter.launcher.ARouter;
|
import com.alibaba.android.arouter.launcher.ARouter;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonSyntaxException;
|
import com.google.gson.JsonSyntaxException;
|
||||||
|
import com.tencent.imsdk.v2.V2TIMConversation;
|
||||||
import com.tencent.imsdk.v2.V2TIMManager;
|
import com.tencent.imsdk.v2.V2TIMManager;
|
||||||
import com.tencent.qcloud.tuicore.TUIConstants;
|
import com.tencent.qcloud.tuicore.TUIConstants;
|
||||||
import com.tencent.qcloud.tuicore.TUICore;
|
import com.tencent.qcloud.tuicore.TUICore;
|
||||||
@@ -267,7 +268,7 @@ public class InputView extends LinearLayout implements View.OnClickListener, Tex
|
|||||||
private boolean isChock(){
|
private boolean isChock(){
|
||||||
userInd userInfo = getUserInfo();
|
userInd userInfo = getUserInfo();
|
||||||
|
|
||||||
if (userInfo != null) {
|
if (userInfo != null && mChatInfo.getType()==1) {
|
||||||
if (userInfo.getIs_can_chat() == 0 && userInfo.getCan_chat_money() > 0) {
|
if (userInfo.getIs_can_chat() == 0 && userInfo.getCan_chat_money() > 0) {
|
||||||
Toast.makeText(getContext(), "充值不足"+userInfo.getCan_chat_money()+"元,您无法发送消息", Toast.LENGTH_LONG).show();
|
Toast.makeText(getContext(), "充值不足"+userInfo.getCan_chat_money()+"元,您无法发送消息", Toast.LENGTH_LONG).show();
|
||||||
ARouter.getInstance().build("/modulevocal/RechargeActivity").navigation();
|
ARouter.getInstance().build("/modulevocal/RechargeActivity").navigation();
|
||||||
@@ -275,7 +276,7 @@ public class InputView extends LinearLayout implements View.OnClickListener, Tex
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void init() {
|
protected void init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user