记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
董敬伟
liquidnet-bus-v1
Commits
9c728547
Commit
9c728547
authored
Apr 11, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交素材上传相关修改
parent
986ea1ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
mysql_db_ddl.sql
...alaxy/liquidnet-service-galaxy-impl/docu/mysql_db_ddl.sql
+10
-4
GalaxyCommonBiz.java
...ava/com/liquidnet/service/galaxy/biz/GalaxyCommonBiz.java
+9
-0
No files found.
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/docu/mysql_db_ddl.sql
View file @
9c728547
drop
TABLE
if
exists
`galaxy_user_info`
;
create
table
galaxy_user_info
create
table
galaxy_user_info
(
(
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
...
@@ -16,9 +17,10 @@ create table galaxy_user_info
...
@@ -16,9 +17,10 @@ create table galaxy_user_info
router_type
varchar
(
200
)
NOT
NULL
COMMENT
'路由类型(zxinchain、eth、antchain)'
,
router_type
varchar
(
200
)
NOT
NULL
COMMENT
'路由类型(zxinchain、eth、antchain)'
,
created_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
created_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
updated_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
updated_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`mid`
)
,
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
comment
'数字藏品用户信息'
;
)
ENGINE
=
InnoDB
comment
'数字藏品用户信息'
;
drop
TABLE
if
exists
`galaxy_series_info`
;
create
table
galaxy_series_info
create
table
galaxy_series_info
(
(
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
...
@@ -41,6 +43,7 @@ create table galaxy_series_info
...
@@ -41,6 +43,7 @@ create table galaxy_series_info
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
comment
'数字藏品系列信息'
;
)
ENGINE
=
InnoDB
comment
'数字藏品系列信息'
;
drop
TABLE
if
exists
`galaxy_series_nft_info`
;
create
table
galaxy_series_nft_info
create
table
galaxy_series_nft_info
(
(
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
...
@@ -70,9 +73,10 @@ create table galaxy_series_nft_info
...
@@ -70,9 +73,10 @@ create table galaxy_series_nft_info
updated_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
updated_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
comment
'数字藏品系列nft信息'
;
)
ENGINE
=
InnoDB
comment
'数字藏品系列nft信息'
;
alter
table
galaxy_series_nft_info
add
nft_id_begin_index
int
default
0
comment
'nftId开始索引'
after
nft_id_begin
;
--
alter table galaxy_series_nft_info add nft_id_begin_index int default 0 comment 'nftId开始索引' after nft_id_begin;
alter
table
galaxy_series_nft_info
add
nft_publish_number
int
default
1
comment
'nft系列发行序号'
after
nft_id_begin_index
;
--
alter table galaxy_series_nft_info add nft_publish_number int default 1 comment 'nft系列发行序号' after nft_id_begin_index;
drop
TABLE
if
exists
`galaxy_nft_order_info`
;
create
table
galaxy_nft_order_info
create
table
galaxy_nft_order_info
(
(
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
...
@@ -103,6 +107,7 @@ create table galaxy_nft_order_info
...
@@ -103,6 +107,7 @@ create table galaxy_nft_order_info
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
comment
'数字藏品订单信息'
;
)
ENGINE
=
InnoDB
comment
'数字藏品订单信息'
;
drop
TABLE
if
exists
`galaxy_nft_trade_info`
;
create
table
galaxy_nft_trade_info
create
table
galaxy_nft_trade_info
(
(
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
...
@@ -121,9 +126,10 @@ create table galaxy_nft_trade_info
...
@@ -121,9 +126,10 @@ create table galaxy_nft_trade_info
router_type
varchar
(
20
)
NOT
NULL
COMMENT
'路由类型(zxinchain、eth、antchain)'
,
router_type
varchar
(
20
)
NOT
NULL
COMMENT
'路由类型(zxinchain、eth、antchain)'
,
created_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
created_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
updated_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
updated_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`mid`
)
,
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
comment
'数字藏品交易信息'
;
)
ENGINE
=
InnoDB
comment
'数字藏品交易信息'
;
drop
TABLE
if
exists
`galaxy_nft_order_fail_log`
;
create
table
galaxy_nft_order_fail_log
create
table
galaxy_nft_order_fail_log
(
(
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
mid
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
...
...
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/biz/GalaxyCommonBiz.java
View file @
9c728547
...
@@ -37,6 +37,15 @@ public class GalaxyCommonBiz {
...
@@ -37,6 +37,15 @@ public class GalaxyCommonBiz {
HttpURLConnection
httpUrl
=
(
HttpURLConnection
)
new
URL
(
url
).
openConnection
();
HttpURLConnection
httpUrl
=
(
HttpURLConnection
)
new
URL
(
url
).
openConnection
();
httpUrl
.
connect
();
httpUrl
.
connect
();
InputStream
ins
=
httpUrl
.
getInputStream
();
InputStream
ins
=
httpUrl
.
getInputStream
();
try
{
if
(!(
new
File
(
tempFilePath
)).
exists
())
{
(
new
File
(
tempFilePath
)).
mkdirs
();
}
}
catch
(
Exception
e
){
log
.
error
(
"创建素材上传目录异常:{}"
,
e
.
getMessage
());
log
.
error
(
e
.
getMessage
(),
e
);
}
// File file = new File(System.getProperty("java.io.tmpdir") + File.separator + name);
// File file = new File(System.getProperty("java.io.tmpdir") + File.separator + name);
File
file
=
new
File
(
tempFilePath
+
File
.
separator
+
name
);
File
file
=
new
File
(
tempFilePath
+
File
.
separator
+
name
);
if
(
file
.
exists
())
{
if
(
file
.
exists
())
{
...
...
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