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
d4e6df41
authored
Jan 22, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
价格体系
parent
0651fec3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
service/service_ly.go
service/service_ly.go
View file @
d4e6df41
...
...
@@ -170,8 +170,11 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
//1是猎芯,3是爱智
switch
sku
.
OrgId
{
case
1
:
//获取系数和价格
sku
=
ls
.
GetCoefficientAndPrice
(
sku
)
//如果是寄售的,也不走价格体系
if
sku
.
Source
!=
12
{
//获取系数和价格
sku
=
ls
.
GetCoefficientAndPrice
(
sku
)
}
break
case
3
:
priceService
:=
PriceService
{}
...
...
@@ -300,15 +303,13 @@ func (ls *LyService) GetSpuExtra(spuId string) (spuExtra model.SpuExtra) {
var
oldSpuExtra
OldSpuExtra
err
=
mongodb
.
DB
(
"ichunt"
)
.
C
(
"spu_extra"
)
.
Find
(
bson
.
M
{
"spu_id"
:
spuId
})
.
One
(
&
oldSpuExtra
)
for
_
,
image
:=
range
oldSpuExtra
.
OldImageList
{
spuExtra
.
ImageList
=
append
(
spuExtra
.
ImageList
,
struct
{
spuExtra
.
ImageList
=
append
(
spuExtra
.
ImageList
,
struct
{
Name
string
`bson:"name" json:"name"`
Thumbnail
string
`bson:"thumbnail" json:"thumbnail"`
}{
Name
:
image
.
Name
,
Name
:
image
.
Name
,
Thumbnail
:
image
.
Thumbnail
,
})
}
...
...
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