个人主页关注bugfix
This commit is contained in:
@@ -90,7 +90,7 @@ public class PraiseModel extends BaseModel implements IPraiseModel {
|
||||
}
|
||||
})
|
||||
.doOnError(throwable -> {
|
||||
EventBus.getDefault().post(new PraiseEvent(throwable.getMessage()));
|
||||
EventBus.getDefault().post(new PraiseEvent(likedUid, throwable.getMessage()));
|
||||
});
|
||||
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@ import lombok.Data;
|
||||
* create by lvzebiao on 2018/9/4
|
||||
*/
|
||||
@Data
|
||||
public class PraiseEvent{
|
||||
public class PraiseEvent {
|
||||
|
||||
private boolean praise;
|
||||
|
||||
@@ -22,7 +22,8 @@ public class PraiseEvent{
|
||||
this.likedUid = likedUid;
|
||||
}
|
||||
|
||||
public PraiseEvent(String error) {
|
||||
public PraiseEvent(long likedUid, String error) {
|
||||
this.likedUid = likedUid;
|
||||
this.failed = true;
|
||||
this.error = error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user