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
1e41c42c
Commit
1e41c42c
authored
May 11, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
681c9be2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
api/Appapi/Api/User.php
+8
-0
api/Appapi/Model/User.php
+13
-0
No files found.
api/Appapi/Api/User.php
View file @
1e41c42c
...
...
@@ -1047,6 +1047,10 @@ class Api_User extends PhalApi_Api {
$rs
[
'code'
]
=
1006
;
$rs
[
'msg'
]
=
'每月只可提现'
.
$config
[
'cash_max_times'
]
.
'次,已达上限'
;
return
$rs
;
}
else
if
(
$info
==
1010
){
$rs
[
'code'
]
=
1010
;
$rs
[
'msg'
]
=
'每天可提现3次,已达上限'
;
return
$rs
;
}
else
if
(
$info
==
1007
){
$rs
[
'code'
]
=
1007
;
$rs
[
'msg'
]
=
'提现账号信息不正确'
;
...
...
@@ -1055,6 +1059,10 @@ class Api_User extends PhalApi_Api {
$rs
[
'code'
]
=
1008
;
$rs
[
'msg'
]
=
'禁止提现'
;
return
$rs
;
}
else
if
(
$info
==
1009
){
$rs
[
'code'
]
=
1009
;
$rs
[
'msg'
]
=
'提现最多1万'
;
return
$rs
;
}
else
if
(
!
$info
){
$rs
[
'code'
]
=
1002
;
$rs
[
'msg'
]
=
'提现失败,请重试'
;
...
...
api/Appapi/Model/User.php
View file @
1e41c42c
...
...
@@ -193,6 +193,10 @@ class Model_User extends PhalApi_Model_NotORM
return
1008
;
}
if
(
$money
>
10000
)
{
return
1009
;
}
//本月第一天
$month
=
date
(
'Y-m-d'
,
strtotime
(
date
(
"Ym"
,
$nowtime
)
.
'01'
));
$month_start
=
strtotime
(
date
(
"Ym"
,
$nowtime
)
.
'01'
);
...
...
@@ -206,6 +210,15 @@ class Model_User extends PhalApi_Model_NotORM
return
1006
;
}
}
$day
=
date
(
'Y-m-d'
);
$day_start
=
strtotime
(
$day
.
' 00:00:00'
);
$day_end
=
strtotime
(
$day
.
' 23:59:59'
);
//每天
$isexist
=
DI
()
->
notorm
->
users_cashrecord
->
where
(
'uid=? and addtime > ? and addtime < ?'
,
$uid
,
$day_start
,
$day_end
)
->
count
();
if
(
$isexist
>
3
)
{
return
1010
;
}
$isrz
=
DI
()
->
notorm
->
users_auth
->
select
(
"status"
)
->
where
(
'uid=?'
,
$uid
)
->
fetchOne
();
if
(
!
$isrz
||
$isrz
[
'status'
]
!=
1
)
{
...
...
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