Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
74ba6221fe2798881f2d668507815371e4cf2050
1 parent
76ba3ab6
motice 报错
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
yohobuy/m.yohobuy.com/application/models/Index/User.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
74ba622
...
...
@@ -383,15 +383,17 @@ class UserModel
// 调用接口获取YOHO币
$yohoCoin
=
UserData
::
yohoCoinData
(
$uid
,
$page
,
$limit
,
'post'
);
// 处理YOHO币数据
$coinList
=
$yohoCoin
[
'data'
][
'coinlist'
];
$data
[
'money'
]
=
$yohoCoin
[
'data'
][
'total'
];
foreach
(
$coinList
as
$key
=>
$val
){
$result
[
$key
][
'title'
]
=
$val
[
'message'
];
$result
[
$key
][
'time'
]
=
$val
[
'date'
];
if
(
$val
[
'num'
]
>
0
){
$val
[
'num'
]
=
'+'
.
$val
[
'num'
];
if
(
isset
(
$yohoCoin
[
'data'
])
&&
!
empty
(
$yohoCoin
[
'data'
])){
$coinList
=
$yohoCoin
[
'data'
][
'coinlist'
];
$data
[
'money'
]
=
$yohoCoin
[
'data'
][
'total'
];
foreach
(
$coinList
as
$key
=>
$val
){
$result
[
$key
][
'title'
]
=
$val
[
'message'
];
$result
[
$key
][
'time'
]
=
$val
[
'date'
];
if
(
$val
[
'num'
]
>
0
){
$val
[
'num'
]
=
'+'
.
$val
[
'num'
];
}
$result
[
$key
][
'count'
]
=
$val
[
'num'
];
}
$result
[
$key
][
'count'
]
=
$val
[
'num'
];
}
$data
[
'list'
]
=
$result
;
return
$data
;
...
...
Please
register
or
login
to post a comment