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
3b08bf6f
Commit
3b08bf6f
authored
Sep 19, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
status
parent
df56a23d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Cost.php
application/index/controller/Cost.php
+5
-5
No files found.
application/index/controller/Cost.php
View file @
3b08bf6f
...
@@ -344,19 +344,19 @@ class Cost extends Basic
...
@@ -344,19 +344,19 @@ class Cost extends Basic
$code
=
101
;
$code
=
101
;
$params
=
&
$this
->
params
;
$params
=
&
$this
->
params
;
if
(
empty
(
$params
[
'id'
]
&&
empty
(
$params
[
'id_array'
])
))
{
if
(
empty
(
$params
[
'id'
]
)
&&
empty
(
$params
[
'id_array'
]
))
{
return
$this
->
response
(
$code
,
'参数错误'
);
return
$this
->
response
(
$code
,
'参数错误
1
'
);
}
}
if
(
isset
(
$params
[
'id_array'
]))
{
if
(
isset
(
$params
[
'id_array'
]))
{
if
(
empty
(
$params
[
'id_array'
]))
{
if
(
empty
(
$params
[
'id_array'
]))
{
return
$this
->
response
(
$code
,
'参数错误'
);
return
$this
->
response
(
$code
,
'参数错误
2
'
);
}
}
}
}
if
(
isset
(
$params
[
'id'
]))
{
if
(
isset
(
$params
[
'id'
]))
{
if
(
empty
(
$params
[
'id'
]))
{
if
(
empty
(
$params
[
'id'
]))
{
return
$this
->
response
(
$code
,
'参数错误'
);
return
$this
->
response
(
$code
,
'参数错误
3
'
);
}
}
}
}
...
@@ -379,7 +379,7 @@ class Cost extends Basic
...
@@ -379,7 +379,7 @@ class Cost extends Basic
$service
=
new
CostService
();
$service
=
new
CostService
();
if
(
isset
(
$params
[
'id_array'
]))
{
if
(
isset
(
$params
[
'id_array'
]))
{
if
(
!
in_array
(
$params
[
'check_status'
],
[
1
,
2
,
5
]))
{
if
(
!
in_array
(
$params
[
'check_status'
],
[
2
,
3
,
5
]))
{
return
$this
->
response
(
$code
,
'不能批量审核'
);
return
$this
->
response
(
$code
,
'不能批量审核'
);
}
}
...
...
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