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
e8ee916e
Commit
e8ee916e
authored
Jul 25, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5c20a9c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
StoreFee.php
application/api_broker/controller/StoreFee.php
+1
-1
StoreFeeService.php
application/api_broker/service/StoreFeeService.php
+2
-1
No files found.
application/api_broker/controller/StoreFee.php
View file @
e8ee916e
...
@@ -75,7 +75,7 @@ class StoreFee extends Basic
...
@@ -75,7 +75,7 @@ class StoreFee extends Basic
if
(
!
$img_arr
)
{
if
(
!
$img_arr
)
{
return
$this
->
response
(
"101"
,
"请上传图片"
);
return
$this
->
response
(
"101"
,
"请上传图片"
);
}
}
$if_verify
=
$this
->
service_
->
verifyType
(
$type
,
$fee_item
);
$if_verify
=
$this
->
service_
->
verifyType
(
(
int
)
$type
,
(
int
)
$fee_item
);
if
(
!
$if_verify
)
{
if
(
!
$if_verify
)
{
return
$this
->
response
(
"101"
,
"类型选择错误"
);
return
$this
->
response
(
"101"
,
"类型选择错误"
);
}
}
...
...
application/api_broker/service/StoreFeeService.php
View file @
e8ee916e
...
@@ -50,7 +50,7 @@ class StoreFeeService
...
@@ -50,7 +50,7 @@ class StoreFeeService
$bank
,
$card_no
,
$count_time
,
$img_arr
,
$id
=
0
,
$office_id
=
0
)
$bank
,
$card_no
,
$count_time
,
$img_arr
,
$id
=
0
,
$office_id
=
0
)
{
{
$arr
=
$this
->
applyForFeeBin
(
$id
,
$type
,
$fee_item
,
$total_fee
,
$agent_id
,
$store_id
,
$purpose
,
$site_id
,
$card_name
,
$arr
=
$this
->
applyForFeeBin
(
$id
,
$type
,
$fee_item
,
$total_fee
,
$agent_id
,
$store_id
,
$purpose
,
$site_id
,
$card_name
,
$bank
,
$card_no
,
$count_time
,
$office_id
);
$bank
,
$card_no
,
$count_time
,
$office_id
,
0
);
if
(
$id
)
{
if
(
$id
)
{
$this
->
applyForFeeModel
->
updateData
(
$arr
,
[
'id'
=>
$id
]);
$this
->
applyForFeeModel
->
updateData
(
$arr
,
[
'id'
=>
$id
]);
$feeId
=
$id
;
$feeId
=
$id
;
...
@@ -106,6 +106,7 @@ class StoreFeeService
...
@@ -106,6 +106,7 @@ class StoreFeeService
//费用类型 1办公室成本 2上海总部成本 3分部成本 4同联发展基金 5门店单独成本
//费用类型 1办公室成本 2上海总部成本 3分部成本 4同联发展基金 5门店单独成本
public
function
verifyType
(
$type
,
$fee_item
)
public
function
verifyType
(
$type
,
$fee_item
)
{
{
switch
(
$type
)
{
switch
(
$type
)
{
case
1
:
case
1
:
if
(
$fee_item
>
0
&&
$fee_item
<
200
)
{
if
(
$fee_item
>
0
&&
$fee_item
<
200
)
{
...
...
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