记得上下班打卡 | git大法好,push需谨慎

Commit 9c728547 authored by anjiabin's avatar anjiabin

提交素材上传相关修改

parent 986ea1ed
drop TABLE if exists `galaxy_user_info`;
create table galaxy_user_info
(
mid bigint unsigned NOT NULL AUTO_INCREMENT,
......@@ -16,9 +17,10 @@ create table galaxy_user_info
router_type varchar(200) NOT NULL COMMENT '路由类型(zxinchain、eth、antchain)',
created_at timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
updated_at timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`mid`),
PRIMARY KEY (`mid`)
) ENGINE = InnoDB comment '数字藏品用户信息';
drop TABLE if exists `galaxy_series_info`;
create table galaxy_series_info
(
mid bigint unsigned NOT NULL AUTO_INCREMENT,
......@@ -41,6 +43,7 @@ create table galaxy_series_info
PRIMARY KEY (`mid`)
) ENGINE = InnoDB comment '数字藏品系列信息';
drop TABLE if exists `galaxy_series_nft_info`;
create table galaxy_series_nft_info
(
mid bigint unsigned NOT NULL AUTO_INCREMENT,
......@@ -70,9 +73,10 @@ create table galaxy_series_nft_info
updated_at timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`mid`)
) 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_publish_number int default 1 comment 'nft系列发行序号' after nft_id_begin_index;
-- 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;
drop TABLE if exists `galaxy_nft_order_info`;
create table galaxy_nft_order_info
(
mid bigint unsigned NOT NULL AUTO_INCREMENT,
......@@ -103,6 +107,7 @@ create table galaxy_nft_order_info
PRIMARY KEY (`mid`)
) ENGINE = InnoDB comment '数字藏品订单信息';
drop TABLE if exists `galaxy_nft_trade_info`;
create table galaxy_nft_trade_info
(
mid bigint unsigned NOT NULL AUTO_INCREMENT,
......@@ -121,9 +126,10 @@ create table galaxy_nft_trade_info
router_type varchar(20) NOT NULL COMMENT '路由类型(zxinchain、eth、antchain)',
created_at timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
updated_at timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`mid`),
PRIMARY KEY (`mid`)
) ENGINE = InnoDB comment '数字藏品交易信息';
drop TABLE if exists `galaxy_nft_order_fail_log`;
create table galaxy_nft_order_fail_log
(
mid bigint unsigned NOT NULL AUTO_INCREMENT,
......
......@@ -37,6 +37,15 @@ public class GalaxyCommonBiz {
HttpURLConnection httpUrl = (HttpURLConnection) new URL(url).openConnection();
httpUrl.connect();
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(tempFilePath + File.separator + name);
if (file.exists()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment