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
d1156ff6
Commit
d1156ff6
authored
Jul 22, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除图片
parent
eae217fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
2 deletions
+51
-2
StoreFee.php
application/api_broker/controller/StoreFee.php
+23
-0
StoreFeeService.php
application/api_broker/service/StoreFeeService.php
+2
-1
StoreFee.php
application/index/controller/StoreFee.php
+25
-0
route.php
application/route.php
+1
-1
No files found.
application/api_broker/controller/StoreFee.php
View file @
d1156ff6
...
@@ -111,4 +111,26 @@ class StoreFee extends Basic
...
@@ -111,4 +111,26 @@ class StoreFee extends Basic
}
}
}
}
/**
* 删除图片
*
* @return \think\Response
*/
public
function
delStoreFeeImage
()
{
$code
=
101
;;
$msg
=
''
;
if
(
empty
(
$this
->
params
[
'id_string'
]))
{
return
$this
->
response
(
$code
,
'参数错误'
);
}
$result
=
$this
->
service_
->
delImg
(
$this
->
params
);
if
(
$result
[
'status'
]
!=
'fail'
)
{
$code
=
200
;
}
return
$this
->
response
(
$code
,
$msg
);
}
}
}
\ No newline at end of file
application/api_broker/service/StoreFeeService.php
View file @
d1156ff6
...
@@ -157,9 +157,10 @@ class StoreFeeService
...
@@ -157,9 +157,10 @@ class StoreFeeService
$img_data
=
$this
->
imgModel
->
findByAll
(
'id,img_name'
,
[
'id'
=>
[
'in'
,
$id_string
]]);
$img_data
=
$this
->
imgModel
->
findByAll
(
'id,img_name'
,
[
'id'
=>
[
'in'
,
$id_string
]]);
$num
=
0
;
$num
=
0
;
$path
=
ROOT_PATH
.
'public/'
;
foreach
(
$img_data
as
$v
)
{
foreach
(
$img_data
as
$v
)
{
$num
+=
$this
->
imgModel
->
editData
([
'is_del'
=>
1
],
$v
[
'id'
]);
$num
+=
$this
->
imgModel
->
editData
([
'is_del'
=>
1
],
$v
[
'id'
]);
unlink
(
$v
[
'img_name'
]);
@
unlink
(
$path
.
'static/chat_image/'
.
$v
[
'img_name'
]);
}
}
if
(
$num
)
{
if
(
$num
)
{
...
...
application/index/controller/StoreFee.php
View file @
d1156ff6
...
@@ -399,4 +399,28 @@ class StoreFee extends Basic
...
@@ -399,4 +399,28 @@ class StoreFee extends Basic
}
}
}
}
/**
* 删除图片
*
* @return \think\Response
*/
public
function
delStoreFeeImage
()
{
$code
=
101
;;
$msg
=
''
;
if
(
empty
(
$this
->
params
[
'id_string'
]))
{
return
$this
->
response
(
$code
,
'参数错误'
);
}
$service_
=
new
StoreFeeService
();
$result
=
$service_
->
delImg
(
$this
->
params
);
if
(
$result
[
'status'
]
!=
'fail'
)
{
$code
=
200
;
}
return
$this
->
response
(
$code
,
$msg
);
}
}
}
\ No newline at end of file
application/route.php
View file @
d1156ff6
...
@@ -537,7 +537,7 @@ Route::group('index', [
...
@@ -537,7 +537,7 @@ Route::group('index', [
'checkCostThree/:check_status'
=>
[
'index/Cost/checkCost'
,
[
'method'
=>
'POST'
],
[
'check_status'
=>
2
]],
//费用报销审核一审
'checkCostThree/:check_status'
=>
[
'index/Cost/checkCost'
,
[
'method'
=>
'POST'
],
[
'check_status'
=>
2
]],
//费用报销审核一审
'checkCostFour/:check_status'
=>
[
'index/Cost/checkCost'
,
[
'method'
=>
'POST'
],
[
'check_status'
=>
3
]],
//费用报销审核二审
'checkCostFour/:check_status'
=>
[
'index/Cost/checkCost'
,
[
'method'
=>
'POST'
],
[
'check_status'
=>
3
]],
//费用报销审核二审
'checkCostFive/:check_status'
=>
[
'index/Cost/checkCost'
,
[
'method'
=>
'POST'
],
[
'check_status'
=>
4
]],
//费用报销审核三审
'checkCostFive/:check_status'
=>
[
'index/Cost/checkCost'
,
[
'method'
=>
'POST'
],
[
'check_status'
=>
4
]],
//费用报销审核三审
'delStoreFeeImage'
=>
[
'index/StoreFee/delStoreFeeImage'
,
[
'method'
=>
'POST'
]],
//删除图片
'getCostDetailList'
=>
[
'index/CostDetail/getCostDetailList'
,
[
'method'
=>
'POST|GET'
]],
'getCostDetailList'
=>
[
'index/CostDetail/getCostDetailList'
,
[
'method'
=>
'POST|GET'
]],
'getCostDetailListExcel'
=>
[
'index/CostDetail/getCostDetailListExcel'
,
[
'method'
=>
'POST|GET'
]],
'getCostDetailListExcel'
=>
[
'index/CostDetail/getCostDetailListExcel'
,
[
'method'
=>
'POST|GET'
]],
'getCostInfo'
=>
[
'index/CostDetail/getCostInfo'
,
[
'method'
=>
'POST|GET'
]],
'getCostInfo'
=>
[
'index/CostDetail/getCostInfo'
,
[
'method'
=>
'POST|GET'
]],
...
...
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