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
23c92ce5
Commit
23c92ce5
authored
Apr 25, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
d171682c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
22 deletions
+23
-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
+3
-1
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
23c92ce5
...
@@ -57,28 +57,28 @@ class IndexAction extends IdentityAction {
...
@@ -57,28 +57,28 @@ class IndexAction extends IdentityAction {
//取最后获奖的18个用户
//取最后获奖的18个用户
$suffix
=
D
(
'Userinfo'
)
->
getTable
(
$this
->
GID
);
//
$suffix = D('Userinfo')->getTable($this->GID);
$table
=
$suffix
?
'mncg_archive.userinfo'
.
$suffix
:
'mncg.userinfo'
;
//
$table =$suffix?'mncg_archive.userinfo'.$suffix:'mncg.userinfo';
//
$where
=
array
(
'sex'
=>
$this
->
GID
,
'new_phb'
=>
[
'gt'
,
0
],
'zt'
=>
1
,
'monthzzl'
=>
[
'gt'
,
150
]);
//
$where=array('sex'=>$this->GID,'new_phb'=>['gt',0],'zt'=>1,'monthzzl'=>['gt',150]);
//测试时不用缓存->cache(true,cacheTime())
//
//测试时不用缓存->cache(true,cacheTime())
$finalWinList
=
M
(
$table
,
" "
,
C
(
'DB_CONFIG_MNCG3'
))
->
where
(
$where
)
->
order
(
'zongup desc'
)
->
limit
(
18
)
->
cache
(
true
,
cacheTime
())
->
select
();
//
$finalWinList = M($table, " ", C('DB_CONFIG_MNCG3'))->where($where)->order('zongup desc')->limit(18)->cache(true,cacheTime())->select();
$userids
=
array
();
//
$userids = array();
foreach
(
$finalWinList
as
$key
=>
&
$w
)
{
//
foreach ($finalWinList as $key => &$w) {
$userIDs
=
explode
(
"X"
,
$w
[
'uid'
]);
//
$userIDs = explode("X", $w['uid']);
$w
[
'user_id'
]
=
$userIDs
[
1
];
//
$w['user_id'] = $userIDs[1];
$w
[
'userUrl'
]
=
tradeDetailLink
(
$this
->
GID
,
3
,
$userIDs
[
1
]);
//
$w['userUrl'] = tradeDetailLink($this->GID,3,$userIDs[1]);
$userids
[]
=
$userIDs
[
1
];
//
$userids[] = $userIDs[1];
}
//
}
//取昵称
//取昵称
$nick_name_arry
=
getUser
(
$userids
,
'nick'
);
////
//
$nick_name_arry =getUser($userids,'nick');////
foreach
(
$finalWinList
as
$key
=>
&
$value
)
{
//
foreach ($finalWinList as $key => &$value) {
$nick_name
=
$nick_name_arry
[
$value
[
'user_id'
]];
//
$nick_name = $nick_name_arry[$value['user_id']];
// $value['username'] = $nick_name?$nick_name:$value['username'];
//
//
$value['username'] = $nick_name?$nick_name:$value['username'];
$value
[
'username'
]
=
$nick_name
;
//
$value['username'] = $nick_name;
}
//
}
$this
->
assign
(
'finalWinList'
,
$finalWinList
);
//
$this->assign('finalWinList',$finalWinList);
$this
->
assign
(
$firstPageData
);
$this
->
assign
(
$firstPageData
);
$this
->
setValue
(
$userId
);
$this
->
setValue
(
$userId
);
...
...
app/Tpl/Vip/Index/saicheng.html
View file @
23c92ce5
...
@@ -228,7 +228,6 @@
...
@@ -228,7 +228,6 @@
}
}
$
(
function
(){
$
(
function
(){
//支付成功的弹窗
//支付成功的弹窗
if
(
'{$_GET.is_payok}'
==
1
){
if
(
'{$_GET.is_payok}'
==
1
){
$
(
".mask"
).
show
();
$
(
".mask"
).
show
();
$
(
"#popPaySucc"
).
show
();
$
(
"#popPaySucc"
).
show
();
...
...
app/Tpl/Vip/Index/withdraw.html
View file @
23c92ce5
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<tr>
<tr>
<td>
提现
</td>
<td>
提现
</td>
<td
class=
"withdraw-num green"
><span
class=
"num"
>
¥{$vo.item_money}元
</span></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>
</tr>
</foreach>
</foreach>
...
@@ -127,6 +127,8 @@
...
@@ -127,6 +127,8 @@
<span
class=
"t-pop-close"
><img
src=
"__PUBLIC__/Home/images/g2020/trade-close.png"
alt=
""
></span>
<span
class=
"t-pop-close"
><img
src=
"__PUBLIC__/Home/images/g2020/trade-close.png"
alt=
""
></span>
</div>
</div>
<!--<div class="camp-apply-pop pops" style="display: none;" id="popZixun">-->
<!--<div class="camp-apply-pop pops" style="display: none;" id="popZixun">-->
<!--<div class="pop-main">-->
<!--<div class="pop-main">-->
<!--<p style="text-align: center;font-weight: bold;font-size: 18px;color: #ff2336;margin-top: 5px;">大赛福利及参赛问题咨询</p>-->
<!--<p style="text-align: center;font-weight: bold;font-size: 18px;color: #ff2336;margin-top: 5px;">大赛福利及参赛问题咨询</p>-->
...
...
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