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
4f7c2b99
Commit
4f7c2b99
authored
Mar 31, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
踢人
parent
e3185192
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
api/Appapi/Api/User.php
+5
-1
api/Appapi/Model/User.php
+8
-0
No files found.
api/Appapi/Api/User.php
View file @
4f7c2b99
...
@@ -979,7 +979,11 @@ class Api_User extends PhalApi_Api {
...
@@ -979,7 +979,11 @@ class Api_User extends PhalApi_Api {
$rs
[
'code'
]
=
1007
;
$rs
[
'code'
]
=
1007
;
$rs
[
'msg'
]
=
'提现账号信息不正确'
;
$rs
[
'msg'
]
=
'提现账号信息不正确'
;
return
$rs
;
return
$rs
;
}
else
if
(
!
$info
){
}
else
if
(
$info
==
1008
){
$rs
[
'code'
]
=
1008
;
$rs
[
'msg'
]
=
'禁止提现'
;
return
$rs
;
}
else
if
(
!
$info
){
$rs
[
'code'
]
=
1002
;
$rs
[
'code'
]
=
1002
;
$rs
[
'msg'
]
=
'提现失败,请重试'
;
$rs
[
'msg'
]
=
'提现失败,请重试'
;
return
$rs
;
return
$rs
;
...
...
api/Appapi/Model/User.php
View file @
4f7c2b99
...
@@ -176,6 +176,14 @@ class Model_User extends PhalApi_Model_NotORM
...
@@ -176,6 +176,14 @@ class Model_User extends PhalApi_Model_NotORM
return
1005
;
return
1005
;
}
}
$info
=
DI
()
->
notorm
->
users
->
select
(
"ban_cash"
)
->
where
(
'id=? and user_type="2"'
,
$uid
)
->
fetchOne
();
if
(
$info
[
'ban_cash'
])
{
return
1008
;
}
//本月第一天
//本月第一天
$month
=
date
(
'Y-m-d'
,
strtotime
(
date
(
"Ym"
,
$nowtime
)
.
'01'
));
$month
=
date
(
'Y-m-d'
,
strtotime
(
date
(
"Ym"
,
$nowtime
)
.
'01'
));
$month_start
=
strtotime
(
date
(
"Ym"
,
$nowtime
)
.
'01'
);
$month_start
=
strtotime
(
date
(
"Ym"
,
$nowtime
)
.
'01'
);
...
...
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