Commit 4936df2d authored by mengcuiguang's avatar mengcuiguang

new pro

parent 4080fc5d
......@@ -95,6 +95,6 @@ public class UserBean implements Serializable {
}
public int getActiviteFlag() {
return activiteFlag;
return 1;
}
}
......@@ -78,39 +78,39 @@ class HomePresenter : BasePresenter<HomeView>() {
}
private fun showTurn() {
AppHttpManager.getInstance(loanApplication)
.call(loanService.showTurn(),
object : BaseSubscriber<BaseResponse<NineShowBean>>() {
override fun onCompleted() {
if (isLinkView) return
}
override fun onNext(baseResponse: BaseResponse<NineShowBean>) {
if (isLinkView) return
val code = baseResponse.status
val message = baseResponse.message
when (code) {
200 -> {
val data = baseResponse.data
if (data != null) {
view.showTurnSuc(data)
// AppPreferencesManager.get()
// .put(Constant.LUCKY_FLAG, data.isShow)
// AppPreferencesManager.get()
// .put(Constant.LUCKY_COMPLETE, data.complete)
// AppPreferencesManager.get()
// .put(Constant.LUCKY_NEED, data.need)
}
}
}
}
override fun onError(e: Throwable?) {
if (isLinkView) return
}
})
// AppHttpManager.getInstance(loanApplication)
// .call(loanService.showTurn(),
// object : BaseSubscriber<BaseResponse<NineShowBean>>() {
// override fun onCompleted() {
// if (isLinkView) return
// }
//
// override fun onNext(baseResponse: BaseResponse<NineShowBean>) {
// if (isLinkView) return
//
// val code = baseResponse.status
// val message = baseResponse.message
// when (code) {
// 200 -> {
// val data = baseResponse.data
// if (data != null) {
// view.showTurnSuc(data)
//
//// AppPreferencesManager.get()
//// .put(Constant.LUCKY_FLAG, data.isShow)
//// AppPreferencesManager.get()
//// .put(Constant.LUCKY_COMPLETE, data.complete)
//// AppPreferencesManager.get()
//// .put(Constant.LUCKY_NEED, data.need)
// }
// }
// }
// }
//
// override fun onError(e: Throwable?) {
// if (isLinkView) return
// }
// })
}
......
......@@ -130,35 +130,35 @@ class MyPresenter : BasePresenter<MyView>() {
}
fun showTurn() {
AppHttpManager.getInstance(loanApplication)
.call(loanService.showTurn(),
object : BaseSubscriber<BaseResponse<NineShowBean>>() {
override fun onCompleted() {
if (isLinkView) return
view.hideLoading()
}
override fun onNext(baseResponse: BaseResponse<NineShowBean>) {
if (isLinkView) return
view.hideLoading()
val code = baseResponse.status
val message = baseResponse.message
when (code) {
200 -> view.showTurnSuc(baseResponse.data)
else -> {
view.showToast(message)
}
}
}
override fun onError(e: Throwable?) {
if (isLinkView) return
view.hideLoading()
view.showToast(e?.message)
}
})
// AppHttpManager.getInstance(loanApplication)
// .call(loanService.showTurn(),
// object : BaseSubscriber<BaseResponse<NineShowBean>>() {
// override fun onCompleted() {
// if (isLinkView) return
// view.hideLoading()
// }
//
// override fun onNext(baseResponse: BaseResponse<NineShowBean>) {
// if (isLinkView) return
//
// view.hideLoading()
// val code = baseResponse.status
// val message = baseResponse.message
//
// when (code) {
// 200 -> view.showTurnSuc(baseResponse.data)
// else -> {
// view.showToast(message)
// }
// }
// }
//
// override fun onError(e: Throwable?) {
// if (isLinkView) return
// view.hideLoading()
// view.showToast(e?.message)
// }
// })
}
......
......@@ -47,35 +47,35 @@ class NinePresenter : BasePresenter<NineView>() {
}
fun showTurn() {
AppHttpManager.getInstance(loanApplication)
.call(loanService.showTurn(),
object : BaseSubscriber<BaseResponse<NineShowBean>>() {
override fun onCompleted() {
if (isLinkView) return
view.hideLoading()
}
override fun onNext(baseResponse: BaseResponse<NineShowBean>) {
if (isLinkView) return
view.hideLoading()
val code = baseResponse.status
val message = baseResponse.message
when (code) {
200 -> view.showTurnSuc(baseResponse.data)
else -> {
view.showToast(message)
}
}
}
override fun onError(e: Throwable?) {
if (isLinkView) return
view.hideLoading()
view.showToast(e?.message)
}
})
// AppHttpManager.getInstance(loanApplication)
// .call(loanService.showTurn(),
// object : BaseSubscriber<BaseResponse<NineShowBean>>() {
// override fun onCompleted() {
// if (isLinkView) return
// view.hideLoading()
// }
//
// override fun onNext(baseResponse: BaseResponse<NineShowBean>) {
// if (isLinkView) return
//
// view.hideLoading()
// val code = baseResponse.status
// val message = baseResponse.message
//
// when (code) {
// 200 -> view.showTurnSuc(baseResponse.data)
// else -> {
// view.showToast(message)
// }
// }
// }
//
// override fun onError(e: Throwable?) {
// if (isLinkView) return
// view.hideLoading()
// view.showToast(e?.message)
// }
// })
}
......
......@@ -204,35 +204,35 @@ class VideoPresenter : BasePresenter<VideoView>() {
}
fun showTurn() {
AppHttpManager.getInstance(loanApplication)
.call(loanService.showTurn(),
object : BaseSubscriber<BaseResponse<NineShowBean>>() {
override fun onCompleted() {
if (isLinkView) return
view.hideLoading()
}
override fun onNext(baseResponse: BaseResponse<NineShowBean>) {
if (isLinkView) return
view.hideLoading()
val code = baseResponse.status
val message = baseResponse.message
when (code) {
200 -> view.showTurnSuc(baseResponse.data)
else -> {
view.showToast(message)
}
}
}
override fun onError(e: Throwable?) {
if (isLinkView) return
view.hideLoading()
view.showToast(e?.message)
}
})
// AppHttpManager.getInstance(loanApplication)
// .call(loanService.showTurn(),
// object : BaseSubscriber<BaseResponse<NineShowBean>>() {
// override fun onCompleted() {
// if (isLinkView) return
// view.hideLoading()
// }
//
// override fun onNext(baseResponse: BaseResponse<NineShowBean>) {
// if (isLinkView) return
//
// view.hideLoading()
// val code = baseResponse.status
// val message = baseResponse.message
//
// when (code) {
// 200 -> view.showTurnSuc(baseResponse.data)
// else -> {
// view.showToast(message)
// }
// }
// }
//
// override fun onError(e: Throwable?) {
// if (isLinkView) return
// view.hideLoading()
// view.showToast(e?.message)
// }
// })
}
......
......@@ -155,7 +155,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/unlock")
@POST("api/vedioV1/unlock")
Observable<BaseResponse<IndexList>> unlock(@Body Map<String, Object> vo);
/**
......@@ -163,7 +163,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/types")
@POST("api/vedioV1/types")
Observable<BaseResponse<HotStyleTypesList>> getHomeV1Types();
/**
......@@ -171,7 +171,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/listByType")
@POST("api/vedioV1/listByType")
Observable<BaseResponse<BannerList>> getHomeV1List(@Body Map<String, Object> vo);
/**
......@@ -179,7 +179,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/feedback")
@POST("api/vedioV1/feedback")
Observable<BaseResponse<Object>> feedback(@Body Map<String, Object> vo);
/**
......@@ -187,7 +187,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/topTabs/v0821")
@POST("api/vedioV1/topTabs/v0821")
Observable<BaseResponse<BannerList>> topTabs();
/**
......@@ -195,7 +195,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/orders")
@POST("api/vedioV1/orders")
Observable<BaseResponse<BannerList>> orders();
......@@ -204,7 +204,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/getIndexList")
@POST("api/vedioV1/getIndexList")
Observable<BaseResponse<IndexList>> getIndexList(@Body Map<String, Object> vo);
/**
......@@ -212,7 +212,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/getIndexList")
@POST("api/vedioV1/getIndexList")
Observable<BaseResponse<IndexList>> getIndexList2(@Body Map<String, Object> vo);
/**
......@@ -220,7 +220,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/getIndex")
@POST("api/vedioV1/getIndex")
Observable<BaseResponse<Object>> getIndex(@Body Map<String, Object> vo);
/**
......@@ -228,7 +228,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/collect")
@POST("api/vedioV1/collect")
Observable<BaseResponse<Object>> collect(@Body Map<String, Object> vo);
/**
......@@ -236,7 +236,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/cancelCollect")
@POST("api/vedioV1/cancelCollect")
Observable<BaseResponse<Object>> cancelCollect(@Body Map<String, Object> vo);
/**
......@@ -244,7 +244,7 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/collectList")
@POST("api/vedioV1/collectList")
Observable<BaseResponse<BannerList>> collectList();
/**
......@@ -260,73 +260,73 @@ public interface LoanService {
*
* @return
*/
@POST("api/vedio/history")
@POST("api/vedioV1/history")
Observable<BaseResponse<BannerList>> history();
/**
* 提交视频信息
*/
@POST("api/vedio/reportIndex")
@POST("api/vedioV1/reportIndex")
Observable<BaseResponse<Object>> reportIndex(@Body Map<String, Object> vo);
/**
* 推荐
*/
@POST("api/vedio/autoList")
@POST("api/vedioV1/autoList")
Observable<BaseResponse<BannerList>> autoList();
/**
* 穿山甲上传剧集
*/
@POST("api/vedio/initCsj")
@POST("api/vedioV1/initCsj")
Observable<BaseResponse<Object>> commitCsjShotInfo(@Body Map<String, Object> vo);
/**
* 推荐
*/
@POST("api/vedio/firstVedio")
@POST("api/vedioV1/firstVedio")
Observable<BaseResponse<IndexList>> getSoltVedio();
/**
* 匹配推荐
*/
@POST("api/vedio/vedio3Msg")
@POST("api/vedioV1/vedio3Msg")
Observable<BaseResponse<RecoBean>> getRecommendVedio();
/**
* 9宫格信息
*/
@POST("api/vedio/getTurnConfig")
@POST("api/vedioV1/getTurnConfig")
Observable<BaseResponse<NineListBean>> getTurnConfig();
/**
* 9宫格抽奖
*/
@POST("api/vedio/toTurn")
@POST("api/vedioV1/toTurn")
Observable<BaseResponse<NineListBean.NineBean>> toTurn();
/**
* 是否展示9宫格
*/
@POST("api/vedio/showTurn")
@POST("api/vedioV1/showTurn")
Observable<BaseResponse<NineShowBean>> showTurn();
/**
* 获取推荐状态
*/
@POST("api/vedio/showVedio4")
@POST("api/vedioV1/showVedio4")
Observable<BaseResponse<JsonObject>> firstShowVedio();
/**
* 推荐banner
*/
@POST("api/vedio/vedio4Msg")
@POST("api/vedioV1/vedio4Msg")
Observable<BaseResponse<RecommendBannerList>> vedio4Msg(@Body Map<String, Object> vo);
/**
* Vip尊享剧场
*/
@POST("api/vedio/vedio4List")
@POST("api/vedioV1/vedio4List")
Observable<BaseResponse<BannerList>> vedio4List(@Body Map<String, Object> vo);
/**
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment