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
7b2cc458
Commit
7b2cc458
authored
Jul 22, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审核图片
parent
8c15ad8a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
ApplyForCost.php
application/api_broker/controller/ApplyForCost.php
+1
-1
CostService.php
application/index/service/CostService.php
+16
-0
FImg.php
application/model/FImg.php
+7
-0
No files found.
application/api_broker/controller/ApplyForCost.php
View file @
7b2cc458
...
...
@@ -45,7 +45,7 @@ class ApplyForCost extends Basic
if
(
$is_ok
)
{
$is_check
=
1
;
}
//
$where['a.status'] = 0;
$where
[
'a.status'
]
=
0
;
$where
[
'a.agent_id'
]
=
$this
->
agentId
;
break
;
//店长查看提交
case
'broker/costListDistrict'
:
$is_ok
=
$check_rule
->
checkRule
(
$this
->
agentId
,
$check_url
);
...
...
application/index/service/CostService.php
View file @
7b2cc458
...
...
@@ -6,16 +6,19 @@ namespace app\index\service;
use
app\model\FApplyForFee
;
use
app\model\FApplyForFeeCheck
;
use
app\model\FImg
;
class
CostService
{
private
$apply_model
;
private
$check_model
;
private
$f_img_model
;
public
function
__construct
()
{
$this
->
apply_model
=
new
FApplyForFee
();
$this
->
check_model
=
new
FApplyForFeeCheck
();
$this
->
f_img_model
=
new
FImg
();
}
/**
...
...
@@ -64,6 +67,19 @@ class CostService
if
(
$num
)
{
try
{
$id
=
$this
->
apply_model
->
updateData
([
'status'
=>
$params
[
'status'
]],
[
'id'
=>
$cost_data
[
'id'
]]);
if
(
$params
[
'status'
]
==
4
)
{
foreach
(
$params
[
'img_name'
]
as
$v
)
{
$img_arr
=
[
'img_id'
=>
$id
,
'img_type'
=>
2
,
'img_name'
=>
$v
[
'img_name'
]
];
}
if
(
isset
(
$img_arr
))
{
$this
->
f_img_model
->
insertDataAll
(
$img_arr
);
}
}
}
catch
(
\Exception
$e
)
{
$result
[
'msg'
]
=
'修改申请记录失败'
.
$e
->
getMessage
();
return
$result
;
...
...
application/model/FImg.php
View file @
7b2cc458
...
...
@@ -16,6 +16,13 @@ class FImg extends BaseModel
$this
->
db_
=
Db
::
name
(
$this
->
table
);
}
/**
* @param $data
* @return int|string
*/
public
function
insertDataAll
(
$data
)
{
return
$this
->
db_
->
insertAll
(
$data
);
}
/**
* 新增数据
...
...
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