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
261f66b8
Commit
261f66b8
authored
Apr 01, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
踢人
parent
31e4675a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
admin/themes/simplebootx/Admin/Cash/index.html
+2
-0
api/Appapi/Api/User.php
+3
-0
api/Appapi/Model/User.php
+14
-0
application/Admin/Controller/CashController.class.php
+1
-0
No files found.
admin/themes/simplebootx/Admin/Cash/index.html
View file @
261f66b8
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
<th>
兑换{$configpub['name_votes']}
</th>
<th>
兑换{$configpub['name_votes']}
</th>
<th>
提现金额
</th>
<th>
提现金额
</th>
<th>
提现账号
</th>
<th>
提现账号
</th>
<th>
来源
</th>
<!-- <th>商户订单号</th> -->
<!-- <th>商户订单号</th> -->
<th>
第三方支付订单号
</th>
<th>
第三方支付订单号
</th>
<th>
状态
</th>
<th>
状态
</th>
...
@@ -59,6 +60,7 @@
...
@@ -59,6 +60,7 @@
{$type[$vo['type']]}
<br>
{$vo['name']}
<br>
{$vo['account']}
<br>
{$vo['account_bank']}
{$type[$vo['type']]}
<br>
{$vo['name']}
<br>
{$vo['account']}
<br>
{$vo['account_bank']}
</td>
</td>
<!-- <td>{$vo['orderno']}</td> -->
<!-- <td>{$vo['orderno']}</td> -->
<td>
{$source[$vo['source']]}
</td>
<td>
{$vo['trade_no']}
</td>
<td>
{$vo['trade_no']}
</td>
<td>
{$status[$vo['status']]}
</td>
<td>
{$status[$vo['status']]}
</td>
<td>
{$vo.addtime|date="Y-m-d H:i:s",###}
</td>
<td>
{$vo.addtime|date="Y-m-d H:i:s",###}
</td>
...
...
api/Appapi/Api/User.php
View file @
261f66b8
...
@@ -97,6 +97,7 @@ class Api_User extends PhalApi_Api {
...
@@ -97,6 +97,7 @@ class Api_User extends PhalApi_Api {
'token'
=>
array
(
'name'
=>
'token'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'用户token'
),
'token'
=>
array
(
'name'
=>
'token'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'用户token'
),
'accountid'
=>
array
(
'name'
=>
'accountid'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'账号ID'
),
'accountid'
=>
array
(
'name'
=>
'accountid'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'账号ID'
),
'cashvote'
=>
array
(
'name'
=>
'cashvote'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'提现的票数'
),
'cashvote'
=>
array
(
'name'
=>
'cashvote'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'提现的票数'
),
'source'
=>
array
(
'name'
=>
'type'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'类型,1主播,2邀请,3家族'
),
),
),
'setAttent'
=>
array
(
'setAttent'
=>
array
(
...
@@ -966,6 +967,8 @@ class Api_User extends PhalApi_Api {
...
@@ -966,6 +967,8 @@ class Api_User extends PhalApi_Api {
'uid'
=>
$uid
,
'uid'
=>
$uid
,
'accountid'
=>
$accountid
,
'accountid'
=>
$accountid
,
'cashvote'
=>
$cashvote
,
'cashvote'
=>
$cashvote
,
'type'
=>
$this
->
type
,
'source'
=>
$this
->
source
,
);
);
$config
=
getConfigPri
();
$config
=
getConfigPri
();
$domain
=
new
Domain_User
();
$domain
=
new
Domain_User
();
...
...
api/Appapi/Model/User.php
View file @
261f66b8
...
@@ -164,6 +164,7 @@ class Model_User extends PhalApi_Model_NotORM
...
@@ -164,6 +164,7 @@ class Model_User extends PhalApi_Model_NotORM
$uid
=
$data
[
'uid'
];
$uid
=
$data
[
'uid'
];
$accountid
=
$data
[
'accountid'
];
$accountid
=
$data
[
'accountid'
];
$money
=
$data
[
'cashvote'
];
$money
=
$data
[
'cashvote'
];
$source
=
$data
[
'source'
];
$config
=
getConfigPri
();
$config
=
getConfigPri
();
$cash_start
=
$config
[
'cash_start'
];
$cash_start
=
$config
[
'cash_start'
];
...
@@ -223,7 +224,20 @@ class Model_User extends PhalApi_Model_NotORM
...
@@ -223,7 +224,20 @@ class Model_User extends PhalApi_Model_NotORM
$cashvotes
=
$money
*
$cash_rate
;
$cashvotes
=
$money
*
$cash_rate
;
$ifok
=
false
;
if
(
$source
==
1
)
{
$ifok
=
DI
()
->
notorm
->
users
->
where
(
'id = ? and votes>=?'
,
$uid
,
$cashvotes
)
->
update
([
'votes'
=>
new
NotORM_Literal
(
"votes -
{
$cashvotes
}
"
)]);
$ifok
=
DI
()
->
notorm
->
users
->
where
(
'id = ? and votes>=?'
,
$uid
,
$cashvotes
)
->
update
([
'votes'
=>
new
NotORM_Literal
(
"votes -
{
$cashvotes
}
"
)]);
}
if
(
$source
==
2
)
{
$ifok
=
DI
()
->
notorm
->
users
->
where
(
'id = ? and i_votes>=?'
,
$uid
,
$cashvotes
)
->
update
([
'i_votes'
=>
new
NotORM_Literal
(
"i_votes -
{
$cashvotes
}
"
)]);
}
if
(
$source
==
3
)
{
$ifok
=
DI
()
->
notorm
->
users
->
where
(
'id = ? and f_votes>=?'
,
$uid
,
$cashvotes
)
->
update
([
'f_votes'
=>
new
NotORM_Literal
(
"f_votes -
{
$cashvotes
}
"
)]);
}
if
(
!
$ifok
)
{
if
(
!
$ifok
)
{
return
1001
;
return
1001
;
}
}
...
...
application/Admin/Controller/CashController.class.php
View file @
261f66b8
...
@@ -70,6 +70,7 @@ class CashController extends AdminbaseController {
...
@@ -70,6 +70,7 @@ class CashController extends AdminbaseController {
$this
->
assign
(
'lists'
,
$lists
);
$this
->
assign
(
'lists'
,
$lists
);
$this
->
assign
(
'formget'
,
$_GET
);
$this
->
assign
(
'formget'
,
$_GET
);
$this
->
assign
(
'type'
,
$this
->
type
);
$this
->
assign
(
'type'
,
$this
->
type
);
$this
->
assign
(
'source'
,
[
1
=>
'主播魅力'
,
2
=>
'邀请魅力'
,
3
=>
'家族魅力'
]);
$this
->
assign
(
"page"
,
$page
->
show
(
'Admin'
));
$this
->
assign
(
"page"
,
$page
->
show
(
'Admin'
));
$this
->
display
();
$this
->
display
();
...
...
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