Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
yimu
mall-server
Commits
6d58cd2d
Commit
6d58cd2d
authored
Dec 28, 2021
by
wp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy发行
parent
9a01504e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SkuServiceImpl.java
...erver/admin/goods_center/service/impl/SkuServiceImpl.java
+2
-2
No files found.
mall-server-admin/src/main/java/com/fzm/mall/server/admin/goods_center/service/impl/SkuServiceImpl.java
View file @
6d58cd2d
...
...
@@ -133,7 +133,7 @@ public class SkuServiceImpl extends ServiceImpl<SkuMapper, Sku> implements ISkuS
for
(
int
i
=
0
;
i
<
kDTO
.
getStock
();
i
++)
{
String
suffix
=
i
+
1
+
""
;
Long
suffixAll
=
Long
.
parseLong
(
tokenId
+
"00000000"
.
substring
(
0
,
8
-
suffix
.
length
())
+
suffix
);
String
hash
=
chainUtil
.
evmPublishTokenSplit
(
merchant
.
getTokenIssueAddr
(),
Long
.
parseLong
(
tokenId
+
suffixAll
)
,
1L
);
String
hash
=
chainUtil
.
evmPublishTokenSplit
(
merchant
.
getTokenIssueAddr
(),
suffixAll
,
1L
);
nos
[
i
]
=
suffixAll
;
hashs
[
i
]
=
hash
;
}
...
...
@@ -309,7 +309,7 @@ public class SkuServiceImpl extends ServiceImpl<SkuMapper, Sku> implements ISkuS
for
(
int
i
=
0
;
i
<
kDTO
.
getStock
();
i
++)
{
String
suffix
=
i
+
1
+
""
;
Long
suffixAll
=
Long
.
parseLong
(
tokenId
+
"00000000"
.
substring
(
0
,
8
-
suffix
.
length
())
+
suffix
);
String
hash
=
chainUtil
.
evmPublishTokenSplit
(
merchant
.
getTokenIssueAddr
(),
Long
.
parseLong
(
tokenId
+
suffixAll
)
,
1L
);
String
hash
=
chainUtil
.
evmPublishTokenSplit
(
merchant
.
getTokenIssueAddr
(),
suffixAll
,
1L
);
nos
[
i
]
=
suffixAll
;
hashs
[
i
]
=
hash
;
}
...
...
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