Commit 6cc08955ceb2910bb1f5b26418f606d50c65ee89

Authored by 陶汉栋
1 parent c0619d56

no message

app/src/main/java/com/shunzhi/parent/manager/MessageManager.java
... ... @@ -7,6 +7,7 @@ import android.content.Context;
7 7 import android.content.Intent;
8 8 import android.content.SharedPreferences;
9 9 import android.support.v4.app.NotificationCompat;
  10 +import android.util.Log;
10 11  
11 12 import com.netease.nimlib.sdk.NIMClient;
12 13 import com.netease.nimlib.sdk.Observer;
... ... @@ -180,20 +181,22 @@ public class MessageManager {
180 181 public void onSuccess(Object o) {
181 182 NIMLoginResultBean bean = new NIMLoginResultBean(true, 200, null);
182 183 subject.onNext(bean);
183   - Timber.i("----===onSuccess : %s", o);
  184 +// Timber.i("----===onSuccess : %s", o);
  185 + Log.d("66666","云信服务器登录失败:" + o.toString());
184 186 }
185 187  
186 188 @Override
187 189 public void onFailed(int i) {
188   - Timber.i("----===nim login failed : %s", i);
189   - ToastUtils.showToast("云信服务器登录失败:" + i);
  190 + Log.d("66666","云信服务器登录失败:" + i);
  191 +// Timber.i("----===nim login failed : %s", i);
190 192 NIMLoginResultBean bean = new NIMLoginResultBean(false, i, null);
191 193 subject.onNext(bean);
192 194 }
193 195  
194 196 @Override
195 197 public void onException(Throwable throwable) {
196   - Timber.i("----===onException");
  198 + Log.d("66666","onException:" + throwable.toString());
  199 +// Timber.i("----===onException");
197 200 if (throwable != null) throwable.printStackTrace();
198 201 NIMLoginResultBean bean = new NIMLoginResultBean(false, 0, throwable);
199 202 subject.onNext(bean);
... ...