diff --git a/db/wedpr_ddl.sql b/db/wedpr_ddl.sql index 832a7ab9..ef14bf49 100644 --- a/db/wedpr_ddl.sql +++ b/db/wedpr_ddl.sql @@ -181,7 +181,7 @@ create table if not exists `wedpr_setting_template`( primary key (`id`), index name_index(`name`(128)), index type_index(`type`(128)), - index agency_index(`agency`(128) + index agency_index(`agency`(128)) )ENGINE=InnoDB default charset=utf8mb4 default collate=utf8mb4_bin ROW_FORMAT=DYNAMIC; CREATE TABLE if not exists `wedpr_dataset` ( diff --git a/db/wedpr_dml.sql b/db/wedpr_dml.sql index a26c606a..318eae86 100644 --- a/db/wedpr_dml.sql +++ b/db/wedpr_dml.sql @@ -1,5 +1,5 @@ -- the Wizard algorithm template -insert into `wedpr_config_table`(`config_key`, `config_value`) values("wedpr_algorithm_templates", '{"version":"1.0","templates":[{"name":"PSI","title":"数据对齐","participateNumber":"2+","detail":"","version":"1.0"},{"name":"PIR","title":"匿踪查询","participateNumber":"1","detail":"","version":"1.0"},{"name":"SQL","title":"联表分析","participateNumber":"1+","detail":"","version":"1.0"},{"name":"MPC","title":"自定义计算","participateNumber":"1+","detail":"","version":"1.0"},{"name":"XGB_TRAINING","title":"SecureLGBM训练","participateNumber":"1+","needTagsProvider":true,"detail":"","version":"1.0"},{"name":"XGB_PREDICTING","title":"SecureLGBM预测","participateNumber":"1+","needTagsProvider":true,"detail":"","version":"1.0"},{"name":"LR_TRAINING","title":"SecureLR建模","participateNumber":"1+","needTagsProvider":true,"detail":"","version":"1.0"},{"name":"LR_PREDICTING","title":"SecureLR预测","participateNumber":"1+","needTagsProvider":true,"value":"LR_PREDICTING","detail":"","version":"1.0"}]}'); +insert into `wedpr_config_table`(`config_key`, `config_value`) values("wedpr_algorithm_templates", '{"version":"1.0","templates":[{"name":"PSI","title":"数据对齐","supportable":true,"enable":true,"participateNumber":"2+","detail":"","version":"1.0"},{"name":"PIR","title":"匿踪查询","supportable":true,"enable":true,"participateNumber":"1","detail":"","version":"1.0"},{"name":"SQL","title":"联表分析","supportable":true,"enable":true,"participateNumber":"1+","detail":"","version":"1.0"},{"name":"MPC","title":"自定义计算","supportable":true,"enable":true,"participateNumber":"1+","detail":"","version":"1.0"},{"name":"XGB_TRAINING","title":"SecureLGBM训练","supportable":true,"enable":true,"participateNumber":"1+","needTagsProvider":true,"detail":"","version":"1.0"},{"name":"XGB_PREDICTING","title":"SecureLGBM预测","supportable":true,"enable":true,"participateNumber":"1+","needTagsProvider":true,"detail":"","version":"1.0"},{"name":"LR_TRAINING","title":"SecureLR建模","supportable":true,"enable":true,"participateNumber":"1+","needTagsProvider":true,"detail":"","version":"1.0"},{"name":"LR_PREDICTING","title":"SecureLR预测","supportable":true,"enable":true,"participateNumber":"1+","needTagsProvider":true,"detail":"","version":"1.0"},{"name":"PREPROCESSING","title":"数据预处理","supportable":true,"detail":"","version":"1.0"},{"name":"FEATURE_ENGINEERING","title":"特征工程","supportable":true,"detail":"","version":"1.0"}]}'); -- the jupyter related host settings diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100644 index 00000000..5ad52f54 --- /dev/null +++ b/scripts/install.sh @@ -0,0 +1 @@ +apt install fontconfig diff --git a/wedpr-components/user/src/main/java/com/webank/wedpr/components/user/controller/WedprUserRegisterController.java b/wedpr-components/user/src/main/java/com/webank/wedpr/components/user/controller/WedprUserRegisterController.java index 53aa3005..793c457a 100644 --- a/wedpr-components/user/src/main/java/com/webank/wedpr/components/user/controller/WedprUserRegisterController.java +++ b/wedpr-components/user/src/main/java/com/webank/wedpr/components/user/controller/WedprUserRegisterController.java @@ -12,6 +12,8 @@ import com.webank.wedpr.components.user.service.WedprUserService; import javax.validation.Valid; import lombok.extern.slf4j.Slf4j; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.StringUtils; @@ -33,6 +35,7 @@ produces = {"application/json"}) @Slf4j public class WedprUserRegisterController { + private static final Logger logger = LoggerFactory.getLogger(WedprUserRegisterController.class); @Autowired private WedprUserService wedprUserService; @@ -78,7 +81,9 @@ public WeDPRResponse imageCodeController() { Constant.WEDPR_SUCCESS_MSG, new WedprImageCodeResponse(randomToken, imageBase64)); } catch (Exception e) { - return new WeDPRResponse(Constant.WEDPR_FAILED, "验证码生成失败"); + logger.warn("generate image code failed, error: ", e); + return new WeDPRResponse( + Constant.WEDPR_FAILED, "Generate image-code failed, error: " + e.getMessage()); } } }