Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
quxiu
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
quxiu
Commits
7ac1f848
Commit
7ac1f848
authored
Mar 29, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
踢人
parent
7ddabb78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
admin/themes/simplebootx/User/index.html
+5
-0
application/User/Controller/IndexadminController.class.php
+32
-0
No files found.
admin/themes/simplebootx/User/index.html
View file @
7ac1f848
...
...
@@ -154,6 +154,11 @@
<else/>
<a
href=
"{:U('indexadmin/recommend2',array('id'=>$vo['id']))}"
class=
"js-ajax-dialog-btn"
data-msg=
"您确定要关注推荐此用户吗?"
>
关注推荐
</a>
|
</if>
<if
condition=
"$vo.ban_cash eq '1'"
>
<a
href=
"{:U('indexadmin/cancelBanCash',array('id'=>$vo['id']))}"
class=
"js-ajax-dialog-btn"
data-msg=
"您确定要取消禁止提现吗?"
>
取消禁止提现
</a>
|
<else/>
<a
href=
"{:U('indexadmin/banCash',array('id'=>$vo['id']))}"
class=
"js-ajax-dialog-btn"
data-msg=
"您确定要禁止提现此用户吗?"
>
禁止提现
</a>
|
</if>
<if
condition=
"$vo.iszombie eq '1'"
>
<a
href=
"{:U('indexadmin/cancelzombie',array('id'=>$vo['id']))}"
class=
"js-ajax-dialog-btn"
data-msg=
"您确定要关闭僵尸粉吗?"
>
关闭僵尸粉
</a>
|
<else/>
...
...
application/User/Controller/IndexadminController.class.php
View file @
7ac1f848
...
...
@@ -359,6 +359,38 @@ class IndexadminController extends AdminbaseController {
}
}
function
cancelBanCash
(){
$id
=
intval
(
$_GET
[
'id'
]);
if
(
$id
)
{
$rst
=
M
(
"Users"
)
->
where
(
array
(
"id"
=>
$id
,
"user_type"
=>
2
))
->
setField
(
'ban_cash'
,
'0'
);
if
(
$rst
!==
false
)
{
$action
=
"取消推荐会员:
{
$id
}
"
;
setAdminLog
(
$action
);
$this
->
success
(
"会员取消禁止提现成功!"
);
}
else
{
$this
->
error
(
'会员取消禁止提现失败!'
);
}
}
else
{
$this
->
error
(
'数据传入失败!'
);
}
}
function
banCash
(){
$id
=
intval
(
$_GET
[
'id'
]);
if
(
$id
)
{
$rst
=
M
(
"Users"
)
->
where
(
array
(
"id"
=>
$id
,
"user_type"
=>
2
))
->
setField
(
'ban_cash'
,
'1'
);
if
(
$rst
!==
false
)
{
$action
=
"设置推荐会员:
{
$id
}
"
;
setAdminLog
(
$action
);
$this
->
success
(
"会员禁止提现成功!"
);
}
else
{
$this
->
error
(
'会员禁止提现失败!'
);
}
}
else
{
$this
->
error
(
'数据传入失败!'
);
}
}
function
cancelzombie
(){
$id
=
intval
(
$_GET
[
'id'
]);
if
(
$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