Sfoglia il codice sorgente

1、增加用户Id判断;

yzs 4 anni fa
parent
commit
fd6b7da3e7

+ 4 - 0
uchat_room/src/main/java/com/hncx/xxm/room/widget/dialog/UserInfoDialog.java

@@ -384,6 +384,10 @@ public class UserInfoDialog extends Dialog implements View.OnClickListener {
             e.printStackTrace();
         }
         try {
+            if (userInfo.getUid() <= 0) {
+                ToastUtils.showShort("数据异常,请稍后再试");
+                return;
+            }
             // 私聊弹窗
             FragmentActivity fragmentActivity = (FragmentActivity) context;
             FragmentManager fm = fragmentActivity.getSupportFragmentManager();