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
dee9c13f
Commit
dee9c13f
authored
Jul 23, 2024
by
houyadong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成员交易逻辑修改-bug
parent
e1bd000a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
UserModel.class.php
app/Lib/Model/UserModel.class.php
+3
-3
No files found.
app/Lib/Model/UserModel.class.php
View file @
dee9c13f
...
@@ -203,7 +203,7 @@ class UserModel extends Model
...
@@ -203,7 +203,7 @@ class UserModel extends Model
}
else
{
}
else
{
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$gId
);
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$gId
);
$model
=
M
()
->
db
(
2
,
getModel
(
$group
[
'web_id'
]));
$model
=
M
()
->
db
(
2
,
getModel
(
$group
[
'web_id'
]));
$uinfo_table_name
=
'
userinfo'
;
$uinfo_table_name
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.
userinfo'
;
$table_name
=
'entrust'
;
$table_name
=
'entrust'
;
$his_table_name
=
$suffix
?
'mncg_archive.hisentrust'
.
$suffix
:
'hisentrust'
;
$his_table_name
=
$suffix
?
'mncg_archive.hisentrust'
.
$suffix
:
'hisentrust'
;
...
@@ -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
(
'
sort_time desc
'
)
->
order
(
'
FIELD(userid,"'
.
implode
(
'","'
,
array_keys
(
$top3_uids
))
.
'")
'
)
->
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,7 +243,7 @@ class UserModel extends Model
...
@@ -243,7 +243,7 @@ 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
(
'
cj_time desc
'
)
->
order
(
'
FIELD(userid,"'
.
implode
(
'","'
,
array_keys
(
$top3_uids
))
.
'")
'
)
->
select
();
->
select
();
}
}
$top3_ids
=
array_column
(
$top3_data
,
'id'
);
$top3_ids
=
array_column
(
$top3_data
,
'id'
);
...
...
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