浏览代码

[이벤트][Bug] 상세 로딩 에러 시 메세지 추가

hyodong.min 6 年之前
父节点
当前提交
2d954c9fbd
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/event/EventDetailModel.java

+ 4 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/event/EventDetailModel.java

@@ -1,6 +1,7 @@
 package kr.co.zumo.app.lifeplus.view.screen.event;
 
 import android.support.annotation.CallSuper;
+import android.util.Log;
 
 import java.util.List;
 
@@ -103,9 +104,11 @@ public abstract class EventDetailModel extends CoinModel {
       parseEventPageBean();
       // 한 번만 사용
       deliveredEventDetailBean = null;
+      Log.d("APP# EventDetailModel | loadEventDetail", "|" + ":::::::::::::::::::::::::::::: 전달 데이터 이용");
       onResult(new Event.Builder(Event.SUCCESS).integer(Event.EVENT_DETAIL).build());
       return;
     }
+    Log.d("APP# EventDetailModel | loadEventDetail", "|" + ":::::::::::::::::::::::::::::: 이벤트 디테일 로딩 ... ");
 
     disposable = new APIEventDetailModule().call(new ItemNoRequestBean(eventNo), new APIModuleListener<EventDetailResultBean>(waiterCaller) {
       @Override
@@ -124,7 +127,7 @@ public abstract class EventDetailModel extends CoinModel {
 
       @Override
       public void onApiError(String errorMessage, APIError error) {
-        onResult(new Event.Builder(Event.ERROR).integer(Event.EVENT_DETAIL).build());
+        onResult(new Event.Builder(Event.ERROR).integer(Event.EVENT_DETAIL).string(errorMessage).build());
       }
     });
   }