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
eae0754d
authored
Jul 12, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
立创显示内部编码问题
parent
96302efd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
model/ly_sku.go
model/ly_sku.go
View file @
eae0754d
...
@@ -117,10 +117,6 @@ func InitSkuData(sku string) (data LySku) {
...
@@ -117,10 +117,6 @@ func InitSkuData(sku string) (data LySku) {
encoded
:=
gjson
.
Get
(
sku
,
"encoded"
)
.
String
()
encoded
:=
gjson
.
Get
(
sku
,
"encoded"
)
.
String
()
data
.
Encoded
=
encoded
data
.
Encoded
=
encoded
//加上紧急判断,如果是立创(L0001175)的商品,就修改内部编码
if
data
.
Canal
==
"L0001175"
{
data
.
Encoded
=
"10142-L"
}
batchSn
:=
gjson
.
Get
(
sku
,
"batch_sn"
)
.
String
()
batchSn
:=
gjson
.
Get
(
sku
,
"batch_sn"
)
.
String
()
data
.
BatchSn
=
batchSn
data
.
BatchSn
=
batchSn
...
@@ -152,6 +148,11 @@ func InitSkuData(sku string) (data LySku) {
...
@@ -152,6 +148,11 @@ func InitSkuData(sku string) (data LySku) {
canal
:=
gjson
.
Get
(
sku
,
"canal"
)
.
String
()
canal
:=
gjson
.
Get
(
sku
,
"canal"
)
.
String
()
data
.
Canal
=
canal
data
.
Canal
=
canal
//加上紧急判断,如果是立创(L0001175)的商品,就修改内部编码
if
data
.
Canal
==
"L0001175"
{
data
.
Encoded
=
"10142-L"
}
cpTime
:=
gjson
.
Get
(
sku
,
"cp_time"
)
.
Int
()
cpTime
:=
gjson
.
Get
(
sku
,
"cp_time"
)
.
Int
()
data
.
CpTime
=
cpTime
data
.
CpTime
=
cpTime
...
...
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