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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
11 deletions
+25
-11
PayLogOpen.php
application/api_broker/controller/PayLogOpen.php
+25
-11
No files found.
application/api_broker/controller/PayLogOpen.php
View file @
27d74e8a
...
@@ -93,6 +93,20 @@ class PayLogOpen extends Basic
...
@@ -93,6 +93,20 @@ class PayLogOpen extends Basic
if
(
true
!==
$checkResult
)
{
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$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"
];
$open_id
=
$params
[
"open_id"
];
$status
=
$params
[
"status"
];
$status
=
$params
[
"status"
];
$remark
=
$params
[
"remark"
];
$remark
=
$params
[
"remark"
];
...
@@ -117,12 +131,12 @@ class PayLogOpen extends Basic
...
@@ -117,12 +131,12 @@ class PayLogOpen extends Basic
public
function
getOpenList
()
public
function
getOpenList
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/* $params = array(
/* $params = array(
"agent_id" => 1,
"agent_id" => 1,
"status" => 0, //0未审核 1总监审核 2财务一审 3财务二审
"status" => 0, //0未审核 1总监审核 2财务一审 3财务二审
"page_no" => 1,
"page_no" => 1,
"page_size" => 15
"page_size" => 15
);*/
);*/
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"status"
]))
{
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"status"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
...
@@ -130,11 +144,11 @@ class PayLogOpen extends Basic
...
@@ -130,11 +144,11 @@ class PayLogOpen extends Basic
$status
=
$params
[
"status"
];
$status
=
$params
[
"status"
];
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$result
=
$this
->
service_
->
getOpenList
(
$agent_id
,
$status
,
$pageNo
,
$pageSize
);
$result
=
$this
->
service_
->
getOpenList
(
$agent_id
,
$status
,
$pageNo
,
$pageSize
);
if
(
count
(
$result
)
>
0
)
{
if
(
count
(
$result
)
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,
$result
);
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
else
{
}
else
{
return
$this
->
response
(
"200"
,
"success"
,
[]);
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