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
b0735e6e
Commit
b0735e6e
authored
Jul 23, 2024
by
houyadong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成员交易逻辑修改-bug
parent
dee9c13f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
UserModel.class.php
app/Lib/Model/UserModel.class.php
+10
-2
No files found.
app/Lib/Model/UserModel.class.php
View file @
b0735e6e
...
@@ -235,7 +235,7 @@ class UserModel extends Model
...
@@ -235,7 +235,7 @@ class UserModel extends Model
->
where
(
$entrust_where
)
->
where
(
$entrust_where
)
->
where
([
'userid'
=>
[
'in'
,
array_keys
(
$top3_uids
)]])
->
where
([
'userid'
=>
[
'in'
,
array_keys
(
$top3_uids
)]])
->
group
(
'userid'
)
->
group
(
'userid'
)
->
order
(
'FIELD(userid,"'
.
implode
(
'","'
,
array_keys
(
$top3_uids
))
.
'")'
)
->
order
(
'FIELD(userid,"'
.
implode
(
'","'
,
array_keys
(
$top3_uids
))
.
'")
asc,cj_time desc
'
)
->
select
();
->
select
();
if
(
empty
(
$top3_data
)){
if
(
empty
(
$top3_data
)){
$top3_data
=
$model
->
table
(
$his_table_name
)
$top3_data
=
$model
->
table
(
$his_table_name
)
...
@@ -243,9 +243,17 @@ class UserModel extends Model
...
@@ -243,9 +243,17 @@ class UserModel extends Model
->
where
(
$entrust_where
)
->
where
(
$entrust_where
)
->
where
([
'userid'
=>
[
'in'
,
array_keys
(
$top3_uids
)],
'cj_time'
=>
[
'gt'
,
strtotime
(
'today'
)]])
->
where
([
'userid'
=>
[
'in'
,
array_keys
(
$top3_uids
)],
'cj_time'
=>
[
'gt'
,
strtotime
(
'today'
)]])
->
group
(
'userid'
)
->
group
(
'userid'
)
->
order
(
'FIELD(userid,"'
.
implode
(
'","'
,
array_keys
(
$top3_uids
))
.
'")'
)
->
order
(
'FIELD(userid,"'
.
implode
(
'","'
,
array_keys
(
$top3_uids
))
.
'")
asc,cj_time desc
'
)
->
select
();
->
select
();
}
}
$tmp
=
[];
foreach
(
$top3_data
as
$k
=>
$v
){
if
(
$tmp
[
$v
[
'userid'
]]){
unset
(
$top3_data
[
$k
]);
}
else
{
$tmp
[
$v
[
'userid'
]]
=
1
;
}
}
$top3_ids
=
array_column
(
$top3_data
,
'id'
);
$top3_ids
=
array_column
(
$top3_data
,
'id'
);
if
(
!
empty
(
$top3_ids
)){
if
(
!
empty
(
$top3_ids
)){
$entrust_where
[
'id'
]
=
[
'not in'
,
$top3_ids
];
$entrust_where
[
'id'
]
=
[
'not in'
,
$top3_ids
];
...
...
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