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
c7392254
Commit
c7392254
authored
Sep 23, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return_type
parent
f4d354c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ApplyForCost.php
application/api_broker/controller/ApplyForCost.php
+5
-3
No files found.
application/api_broker/controller/ApplyForCost.php
View file @
c7392254
...
...
@@ -34,6 +34,7 @@ class ApplyForCost extends Basic
$agent_data
=
$redis
->
getRedisCache
(
2
,
$this
->
agentId
);
$check_url
=
''
;
$return_type
=
$this
->
params
[
'type'
];
switch
(
$this
->
params
[
'type'
])
{
case
1
:
if
(
!
empty
(
$this
->
params
[
'site_id'
]))
{
...
...
@@ -59,7 +60,7 @@ class ApplyForCost extends Basic
$check_url
=
'index/checkCostThree/2'
;
//总监权限查看
$where
[
'a.status'
]
=
1
;
$where
[
'a.status'
]
=
5
;
$get_check_user
=
'index/getCostListTwo/1'
;
$is_check
=
$this
->
checkAuth
(
$get_check_user
);
...
...
@@ -109,8 +110,9 @@ class ApplyForCost extends Basic
if
(
!
$is_check
)
{
$where
[
'a.store_id'
]
=
$agent_data
[
'store_id'
];
}
$return_type
=
5
;
$where
[
'a.site_id'
]
=
$this
->
siteId
;
$where
[
'a.status'
]
=
5
;
break
;
//行政审核
$where
[
'a.status'
]
=
1
;
break
;
//行政审核
default
:
return
$this
->
response
(
101
,
'请求错误'
);
}
...
...
@@ -159,7 +161,7 @@ class ApplyForCost extends Basic
$list
[
$k
][
'check_image_array'
]
=
$check_image_array
;
$list
[
$k
][
'check_list'
]
=
$m_check
->
findByAll
(
'a.remark,a.create_time,b.name as agent_name'
,[
'apply_for_id'
=>
$v
[
'id'
]]);
$list
[
$k
][
'image_base_url'
]
=
'static/chat_image/'
;
$list
[
$k
][
'return_type'
]
=
$
this
->
params
[
'type'
]
;
$list
[
$k
][
'return_type'
]
=
$
return_type
;
}
return
$this
->
response
(
200
,
''
,
$list
);
}
...
...
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