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
9500c3c1
authored
Jun 09, 2023
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
货期获取规则问题
parent
9c1b4ddc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
conf/dev/redis.ini
service/service_ly.go
conf/dev/redis.ini
View file @
9500c3c1
;redis连接信息
;redis连接信息
[default_redis_read]
[default_redis_read]
host
=
192.168.1.234
:6379
host
=
redis.liexindev.me
:6379
password
=
icDb29mLy2s
password
=
icDb29mLy2s
max_idle
=
2000
max_idle
=
2000
max_active
=
5000
max_active
=
5000
idle_timeout
=
20
idle_timeout
=
20
[default_redis_write]
[default_redis_write]
host
=
192.168.1.234
:6379
host
=
redis.liexindev.me
:6379
password
=
icDb29mLy2s
password
=
icDb29mLy2s
max_idle
=
2000
max_idle
=
2000
max_active
=
5000
max_active
=
5000
...
...
service/service_ly.go
View file @
9500c3c1
...
@@ -156,12 +156,13 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
...
@@ -156,12 +156,13 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
}
}
//还要处理货期
//还要处理货期
delivery
:=
ls
.
GetDelivery
(
sku
.
SupplierId
,
sku
.
Canal
)
delivery
:=
ls
.
GetDelivery
(
sku
.
SupplierId
,
sku
.
Canal
)
if
delivery
[
"cn_delivery"
]
!
=
""
{
if
sku
.
CnDeliveryTime
=
=
""
{
sku
.
CnDeliveryTime
=
delivery
[
"cn_delivery"
]
sku
.
CnDeliveryTime
=
delivery
[
"cn_delivery"
]
}
}
if
delivery
[
"hk_delivery"
]
!
=
""
{
if
sku
.
HkDeliveryTime
=
=
""
{
sku
.
HkDeliveryTime
=
delivery
[
"hk_delivery"
]
sku
.
HkDeliveryTime
=
delivery
[
"hk_delivery"
]
}
}
}
}
//处理是否可以购买
//处理是否可以购买
...
...
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