Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
27d74e8a
Commit
27d74e8a
authored
May 21, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c91cbbd1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
PayLogOpen.php
application/api_broker/controller/PayLogOpen.php
+18
-4
No files found.
application/api_broker/controller/PayLogOpen.php
View file @
27d74e8a
...
...
@@ -93,6 +93,20 @@ class PayLogOpen extends Basic
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
//todo 判断如果是本月最后一天并且时间为18-24点,总监不能再审核
$nowTime
=
date
(
'Y-m-d'
);
$beginDate
=
date
(
'Y-m-01'
,
strtotime
(
date
(
"Y-m-d"
)));
$endDate
=
date
(
'Y-m-d'
,
strtotime
(
"
$beginDate
+1 month -1 day"
));
if
(
$nowTime
==
$endDate
)
{
$checkDayStr
=
date
(
'Y-m-d '
,
time
());
$timeBegin1
=
strtotime
(
$checkDayStr
.
"18:00:00"
);
$timeEnd1
=
strtotime
(
$checkDayStr
.
"23:59:59"
);
$curr_time
=
time
();
if
(
$curr_time
<
$timeBegin1
||
$curr_time
>
$timeEnd1
)
{
return
$this
->
response
(
"101"
,
"本月最后一天18点后禁止审核!"
);
}
}
$open_id
=
$params
[
"open_id"
];
$status
=
$params
[
"status"
];
$remark
=
$params
[
"remark"
];
...
...
@@ -131,10 +145,10 @@ class PayLogOpen extends Basic
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$result
=
$this
->
service_
->
getOpenList
(
$agent_id
,
$status
,
$pageNo
,
$pageSize
);
if
(
count
(
$result
)
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
else
{
return
$this
->
response
(
"200"
,
"success"
,
[]);
if
(
count
(
$result
)
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
else
{
return
$this
->
response
(
"200"
,
"success"
,
[]);
}
}
...
...
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