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
ed095427
Commit
ed095427
authored
Apr 01, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
踢人
parent
261f66b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
admin/themes/simplebootx/Admin/Cash/edit.html
+7
-1
application/Admin/Controller/CashController.class.php
+16
-1
No files found.
admin/themes/simplebootx/Admin/Cash/edit.html
View file @
ed095427
...
@@ -45,7 +45,13 @@ input{
...
@@ -45,7 +45,13 @@ input{
<span
class=
"form-required"
>
*
</span>
<span
class=
"form-required"
>
*
</span>
</div>
</div>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
来源
</label>
<div
class=
"controls"
>
<input
type=
"text"
value=
"{$source[$cash['source']]}"
readonly
>
<span
class=
"form-required"
>
*
</span>
</div>
</div>
<!-- <div class="control-group">
<!-- <div class="control-group">
<label class="control-label">商户订单号</label>
<label class="control-label">商户订单号</label>
...
...
application/Admin/Controller/CashController.class.php
View file @
ed095427
...
@@ -102,6 +102,7 @@ class CashController extends AdminbaseController {
...
@@ -102,6 +102,7 @@ class CashController extends AdminbaseController {
$cash
[
'auth'
]
=
M
(
"users_auth"
)
->
field
(
"*"
)
->
where
(
"uid='
$cash[uid]
'"
)
->
find
();
$cash
[
'auth'
]
=
M
(
"users_auth"
)
->
field
(
"*"
)
->
where
(
"uid='
$cash[uid]
'"
)
->
find
();
$this
->
assign
(
'cash'
,
$cash
);
$this
->
assign
(
'cash'
,
$cash
);
$this
->
assign
(
'type'
,
$this
->
type
);
$this
->
assign
(
'type'
,
$this
->
type
);
$this
->
assign
(
'source'
,
[
1
=>
'主播魅力'
,
2
=>
'邀请魅力'
,
3
=>
'家族魅力'
]);
}
else
{
}
else
{
$this
->
error
(
'数据传入失败!'
);
$this
->
error
(
'数据传入失败!'
);
}
}
...
@@ -121,10 +122,24 @@ class CashController extends AdminbaseController {
...
@@ -121,10 +122,24 @@ class CashController extends AdminbaseController {
$cash
->
create
();
$cash
->
create
();
$cash
->
uptime
=
time
();
$cash
->
uptime
=
time
();
$result
=
$cash
->
save
();
$result
=
$cash
->
save
();
var_dump
(
$result
);
die
;
if
(
$result
){
if
(
$result
){
if
(
$_POST
[
'status'
]
==
'2'
){
if
(
$_POST
[
'status'
]
==
'2'
){
M
(
"users"
)
->
where
(
"id='"
.
$_POST
[
'uid'
]
.
"'"
)
->
setInc
(
"votes"
,
$_POST
[
'votes'
]);
// if () {
// M("users")->where("id='".$_POST['uid']."'")->setInc("votes",$_POST['votes']);
// }
// if () {
//
// }
// if () {
//
// }
$action
=
"修改提现记录:
{
$_POST
[
'id'
]
}
- 拒绝"
;
$action
=
"修改提现记录:
{
$_POST
[
'id'
]
}
- 拒绝"
;
}
else
if
(
$_POST
[
'status'
]
==
'1'
){
}
else
if
(
$_POST
[
'status'
]
==
'1'
){
$action
=
"修改提现记录:
{
$_POST
[
'id'
]
}
- 同意"
;
$action
=
"修改提现记录:
{
$_POST
[
'id'
]
}
- 同意"
;
}
else
if
(
$_POST
[
'status'
]
==
'0'
){
}
else
if
(
$_POST
[
'status'
]
==
'0'
){
...
...
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