Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cof_vip
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
houdong
cof_vip
Commits
c630fc36
Commit
c630fc36
authored
Apr 10, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
交易页面加周排名
parent
a819f93e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+6
-5
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+5
-4
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
c630fc36
...
@@ -1333,14 +1333,15 @@ class IndexAction extends IdentityAction {
...
@@ -1333,14 +1333,15 @@ class IndexAction extends IdentityAction {
public
function
getMyData
(){
public
function
getMyData
(){
$userId
=
$this
->
user
[
'userID'
];
$userId
=
$this
->
user
[
'userID'
];
$tid
=
$this
->
GID
.
'X'
.
$userId
;
$tid
=
$this
->
GID
.
'X'
.
$userId
;
$myData
=
[
'userId'
=>
$userId
,
'userName'
=>
$this
->
user
[
'userName'
]];
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$this
->
GID
);
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$this
->
GID
);
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo a'
;
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo a'
;
//->cache(true,cacheTime())
//->cache(true,cacheTime())
$
my
Data
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$tid
])
->
find
();
$
t
Data
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$tid
])
->
find
();
if
(
!
empty
(
$
my
Data
)){
if
(
!
empty
(
$
t
Data
)){
$myData
[
'
userId'
]
=
$userId
;
$myData
[
'
lastweekup'
]
=
$tData
[
'lastweekup'
]
;
$myData
[
'
userName'
]
=
$this
->
user
[
'userName
'
];
$myData
[
'
monthzzl'
]
=
$tData
[
'monthzzl
'
];
//取周排行
//取周排行
$where
=
[
'sex'
=>
$this
->
GID
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
$where
=
[
'sex'
=>
$this
->
GID
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
//->cache(true,cacheTime())
//->cache(true,cacheTime())
...
...
app/Lib/Action/Vip/PkTopAction.class.php
View file @
c630fc36
...
@@ -1543,11 +1543,12 @@ class PkTopAction extends IdentityAction{
...
@@ -1543,11 +1543,12 @@ class PkTopAction extends IdentityAction{
public
function
setMyData
(){
public
function
setMyData
(){
$userId
=
$this
->
user
[
'userID'
];
$userId
=
$this
->
user
[
'userID'
];
if
(
$userId
){
if
(
$userId
){
$myData
=
[
'userId'
=>
$userId
,
'userName'
=>
$this
->
user
[
'userName'
]];
$tid
=
$this
->
GID
.
'X'
.
$userId
;
$tid
=
$this
->
GID
.
'X'
.
$userId
;
$
my
Data
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$tid
])
->
cache
(
true
,
300
)
->
find
();
$
t
Data
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
([
'uid'
=>
$tid
])
->
cache
(
true
,
300
)
->
find
();
if
(
!
empty
(
$
my
Data
)){
if
(
!
empty
(
$
t
Data
)){
$myData
[
'
userId'
]
=
$userId
;
$myData
[
'
lastweekup'
]
=
$tData
[
'lastweekup'
]
;
$myData
[
'
userName'
]
=
$this
->
user
[
'userName
'
];
$myData
[
'
monthzzl'
]
=
$tData
[
'monthzzl
'
];
$where
=
[
'sex'
=>
$this
->
GID
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
$where
=
[
'sex'
=>
$this
->
GID
,
'monthzzl'
=>
[
'gt'
,
0
],
'lastweekup'
=>
[
'gt'
,
0
],
'zt'
=>
1
];
$weekData
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
'lastweekup desc'
)
->
cache
(
true
,
300
)
->
select
();
$weekData
=
M
(
"userinfo"
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
'lastweekup desc'
)
->
cache
(
true
,
300
)
->
select
();
foreach
(
$weekData
as
$k
=>
$v
)
{
foreach
(
$weekData
as
$k
=>
$v
)
{
...
...
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