Commit 407545c6 authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :小象省钱
[实现方案] :随机推荐页
parent dfdff76c
...@@ -26,6 +26,7 @@ import com.zxhl.cms.utils.JumpUtils ...@@ -26,6 +26,7 @@ import com.zxhl.cms.utils.JumpUtils
import com.zxhl.cms.utils.UserDataUtils import com.zxhl.cms.utils.UserDataUtils
import com.zxhl.cms.utils.WeChatPay import com.zxhl.cms.utils.WeChatPay
import org.json.JSONObject import org.json.JSONObject
import kotlin.random.Random
/** /**
*商品详情 *商品详情
...@@ -67,7 +68,8 @@ class TbGoodsDetailPresenter : TbGoodsDetailContract.Presenter { ...@@ -67,7 +68,8 @@ class TbGoodsDetailPresenter : TbGoodsDetailContract.Presenter {
} }
override fun getTjGoodsList() { override fun getTjGoodsList() {
ApiClient.homeApi.getGoodsGuessLike(1, 20) var randomPage = Random.nextInt(16)
ApiClient.homeApi.getGoodsGuessLike(randomPage, 20)
.compose(RxSchedulers.observableIO2Main()) .compose(RxSchedulers.observableIO2Main())
.subscribe(object : BaseObserver<TbGoodsEntity>() { .subscribe(object : BaseObserver<TbGoodsEntity>() {
override fun onSuccess(result: TbGoodsEntity?) { override fun onSuccess(result: TbGoodsEntity?) {
......
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