Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
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
bp
goods
Commits
4b188a41
Commit
4b188a41
authored
Aug 12, 2021
by
卢洪光
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sxh_master_0812' into 'master'
update:注释掉结算价 See merge request bp/goods!3
parents
efbf42a4
e6fb8ac2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
MarketingService.php
application/services/marketing/MarketingService.php
+13
-13
No files found.
application/services/marketing/MarketingService.php
View file @
4b188a41
...
...
@@ -474,19 +474,19 @@ class MarketingService
foreach
(
$goodsSkuList
as
$key
=>
$value
)
{
$clearPrice
=
!
empty
(
$value
[
"clear_price"
])
?
$value
[
"clear_price"
]
*
100
:
0
;
$price
=
!
empty
(
$value
[
"price"
])
?
$value
[
"price"
]
*
100
:
0
;
if
(
$commissionMode
==
Marketing
::
COMMISSION_MODE_RATE
)
{
$commissionTotal
=
(
$firstCommissionRate
+
$secondCommissionRate
)
/
1000
*
$price
;
if
(
$price
-
$commissionTotal
<
$clearPrice
)
{
throw
new
GoodsException
([
'cus'
=>
36
]);
}
}
if
(
$commissionMode
==
Marketing
::
COMMISSION_MODE_FIXED
)
{
$commissionTotal
=
(
$firstCommissionRate
+
$secondCommissionRate
);
if
(
$price
-
$commissionTotal
<
$clearPrice
)
{
throw
new
GoodsException
([
'cus'
=>
36
]);
}
}
//
if ($commissionMode == Marketing::COMMISSION_MODE_RATE) {
//
$commissionTotal = ($firstCommissionRate + $secondCommissionRate) / 1000 * $price;
//
if ($price - $commissionTotal < $clearPrice) {
//
throw new GoodsException(['cus' => 36]);
//
}
//
}
//
//
if ($commissionMode == Marketing::COMMISSION_MODE_FIXED) {
//
$commissionTotal = ($firstCommissionRate + $secondCommissionRate);
//
if ($price - $commissionTotal < $clearPrice) {
//
throw new GoodsException(['cus' => 36]);
//
}
//
}
$colums
[
$key
][
'marketing_id'
]
=
$marketingId
;
$colums
[
$key
][
'goods_spu_id'
]
=
$value
[
'goods_spu_id'
];
...
...
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