Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7ce618a2
authored
Oct 14, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
加入修复逻辑
parent
685a40db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
service/service_price.go
service/service_price.go
View file @
7ce618a2
package
service
import
(
"fmt"
"go_sku_server/model"
c
"go_sku_server/pkg/common"
"go_sku_server/pkg/gredis"
...
...
@@ -205,11 +204,13 @@ func (ps *PriceService) GenerateLadderPrice(sku model.LySku) model.LySku {
priceRatioSortStr
:=
strconv
.
Itoa
(
priceRatioSort
)
ladderPriceMiniProfitLevel
=
int
(
gjson
.
Get
(
priceRatioCache
,
"ladder_price_mini_profit_level."
+
priceRatioSortStr
)
.
Int
())
ladderType
=
int
(
gjson
.
Get
(
priceRatioCache
,
"type."
+
priceRatioSortStr
)
.
Int
())
fmt
.
Println
(
priceRatioSortStr
)
}
else
{
ladderPriceMiniProfitLevel
=
int
(
gjson
.
Get
(
priceRatioCache
,
"ladder_price_mini_profit_level"
)
.
Int
())
ladderType
=
1
}
if
ladderType
==
0
{
ladderType
=
1
}
//fmt.Println("最低利润点阶梯数 : ", ladderPriceMiniProfitLevel)
var
generatedLadderPrice
[]
model
.
LadderPrice
...
...
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