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
9348dd0f
Commit
9348dd0f
authored
Apr 25, 2023
by
houdong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'houdong'
# Conflicts: # app/Tpl/Vip/Index/withdraw.html
parents
c76aa83f
23c92ce5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
22 deletions
+21
-22
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+20
-20
saicheng.html
app/Tpl/Vip/Index/saicheng.html
+0
-1
withdraw.html
app/Tpl/Vip/Index/withdraw.html
+1
-1
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
9348dd0f
...
...
@@ -57,28 +57,28 @@ class IndexAction extends IdentityAction {
//取最后获奖的18个用户
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$this
->
GID
);
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo'
;
$where
=
array
(
'sex'
=>
$this
->
GID
,
'new_phb'
=>
[
'gt'
,
0
],
'zt'
=>
1
,
'monthzzl'
=>
[
'gt'
,
150
]);
//测试时不用缓存->cache(true,cacheTime())
$finalWinList
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
'zongup desc'
)
->
limit
(
18
)
->
cache
(
true
,
cacheTime
())
->
select
();
$userids
=
array
();
foreach
(
$finalWinList
as
$key
=>
&
$w
)
{
$userIDs
=
explode
(
"X"
,
$w
[
'uid'
]);
$w
[
'user_id'
]
=
$userIDs
[
1
];
$w
[
'userUrl'
]
=
tradeDetailLink
(
$this
->
GID
,
3
,
$userIDs
[
1
]);
$userids
[]
=
$userIDs
[
1
];
}
//
$suffix = D('Userinfo')->getTable($this->GID);
//
$table =$suffix?'mncg_archive.userinfo'.$suffix:'mncg.userinfo';
//
//
$where=array('sex'=>$this->GID,'new_phb'=>['gt',0],'zt'=>1,'monthzzl'=>['gt',150]);
//
//测试时不用缓存->cache(true,cacheTime())
//
$finalWinList = M($table, " ", C('DB_CONFIG_MNCG3'))->where($where)->order('zongup desc')->limit(18)->cache(true,cacheTime())->select();
//
$userids = array();
//
foreach ($finalWinList as $key => &$w) {
//
$userIDs = explode("X", $w['uid']);
//
$w['user_id'] = $userIDs[1];
//
$w['userUrl'] = tradeDetailLink($this->GID,3,$userIDs[1]);
//
$userids[] = $userIDs[1];
//
}
//取昵称
$nick_name_arry
=
getUser
(
$userids
,
'nick'
);
////
foreach
(
$finalWinList
as
$key
=>
&
$value
)
{
$nick_name
=
$nick_name_arry
[
$value
[
'user_id'
]];
// $value['username'] = $nick_name?$nick_name:$value['username'];
$value
[
'username'
]
=
$nick_name
;
}
$this
->
assign
(
'finalWinList'
,
$finalWinList
);
//
$nick_name_arry =getUser($userids,'nick');////
//
foreach ($finalWinList as $key => &$value) {
//
$nick_name = $nick_name_arry[$value['user_id']];
//
//
$value['username'] = $nick_name?$nick_name:$value['username'];
//
$value['username'] = $nick_name;
//
}
//
$this->assign('finalWinList',$finalWinList);
$this
->
assign
(
$firstPageData
);
$this
->
setValue
(
$userId
);
...
...
app/Tpl/Vip/Index/saicheng.html
View file @
9348dd0f
...
...
@@ -228,7 +228,6 @@
}
$
(
function
(){
//支付成功的弹窗
if
(
'{$_GET.is_payok}'
==
1
){
$
(
".mask"
).
show
();
$
(
"#popPaySucc"
).
show
();
...
...
app/Tpl/Vip/Index/withdraw.html
View file @
9348dd0f
...
...
@@ -73,7 +73,7 @@
<tr>
<td>
提现
</td>
<td
class=
"withdraw-num green"
><span
class=
"num"
>
¥{$vo.item_money}元
</span></td>
<td>
{$vo.item_time}
</td><td>
已完成
</td>
<td>
{$vo.item_time}
</td><td>
<eq
name=
"vo.status"
value=
"1"
>
已完成
<else/>
待审核
</eq>
</td>
</tr>
</foreach>
<tr>
...
...
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