fix bugs. add 字体流光 自定义view,cos上传报错信息。
This commit is contained in:
@@ -3814,6 +3814,35 @@ public class RetrofitClient {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public void sendAppLog(String logName,String logPath,BaseObserver<String> observer) {
|
||||
sApiServer.postSendAppLog(logName,logPath).enqueue(new Callback<BaseModel<String>>() {
|
||||
@Override
|
||||
public void onResponse(Call<BaseModel<String>> call, Response<BaseModel<String>> response) {
|
||||
if (response.code() == 200) {
|
||||
int code = response.body().getCode();
|
||||
if (code == 1) {
|
||||
observer.onNext("成功");
|
||||
}else if (code == 301){
|
||||
try {
|
||||
ToastUtils.showShort(response.body().getMsg());
|
||||
CommonAppContext.getInstance().clearLoginInfo();
|
||||
} catch (ClassNotFoundException e) {
|
||||
LogUtils.e( e.toString());
|
||||
}
|
||||
}else {
|
||||
observer.onNext("失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(Call<BaseModel<String>> call, Throwable t) {
|
||||
observer.onNext("失败");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/// 巡乐会抽奖
|
||||
public void xlhChou(String roomId, String
|
||||
num, BaseObserver<List<XlhDrawBean>> observer) {
|
||||
|
||||
Reference in New Issue
Block a user