Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
X
xxsq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
xxsq
Commits
407545c6
Commit
407545c6
authored
Jun 01, 2022
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[提交人]:王雪伟
[提交简述] :小象省钱 [实现方案] :随机推荐页
parent
dfdff76c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
TbGoodsDetailPresenter.kt
...a/com/zxbw/modulemain/presenter/TbGoodsDetailPresenter.kt
+3
-1
No files found.
moduleMain/src/main/java/com/zxbw/modulemain/presenter/TbGoodsDetailPresenter.kt
View file @
407545c6
...
...
@@ -26,6 +26,7 @@ import com.zxhl.cms.utils.JumpUtils
import
com.zxhl.cms.utils.UserDataUtils
import
com.zxhl.cms.utils.WeChatPay
import
org.json.JSONObject
import
kotlin.random.Random
/**
*商品详情
...
...
@@ -67,7 +68,8 @@ class TbGoodsDetailPresenter : TbGoodsDetailContract.Presenter {
}
override
fun
getTjGoodsList
()
{
ApiClient
.
homeApi
.
getGoodsGuessLike
(
1
,
20
)
var
randomPage
=
Random
.
nextInt
(
16
)
ApiClient
.
homeApi
.
getGoodsGuessLike
(
randomPage
,
20
)
.
compose
(
RxSchedulers
.
observableIO2Main
())
.
subscribe
(
object
:
BaseObserver
<
TbGoodsEntity
>()
{
override
fun
onSuccess
(
result
:
TbGoodsEntity
?)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment