Skip to content

Commit

Permalink
Merge pull request #85 from wfh45678/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
wfh45678 authored Jun 6, 2021
2 parents f848a8f + 8d860ed commit 13804c2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 26 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The project code called Radar, like the code, monitor the transaction at the bac
## 相关站点
Gitee: https://gitee.com/freshday/radar // 码云为镜像网站,贡献代码请提交到 github
Github: https://github.com/wfh45678/radar
官网: https://www.91risk.com
官网: https://www.riskengine.cn
Wiki: https://gitee.com/freshday/radar/wikis/home


Expand Down Expand Up @@ -48,7 +48,7 @@ The project code called Radar, like the code, monitor the transaction at the bac
前端技术框架: React(SPA)

### 架构图
![系统模块](https://www.91risk.com/radar/sys_model_arch.png)
![系统模块](https://www.riskengine.cn/radar/sys_model_arch.png)

## 技术选型
* Springboot:笔者是java 出生, 选择 Springboot 理所当然,方便自己, 也方便其他Java使用者进行扩展。
Expand Down Expand Up @@ -79,7 +79,7 @@ https://gitee.com/freshday/radar/wikis/manual
## 演示入口
通过管理端能够快速了解系统是怎么从风险的定义到风险的量化再到风险的集中管理的整个工作流程。
为了更好的体验,请花一分钟观看 [使用手册](https://gitee.com/freshday/radar/wikis/manual?sort_id=1637446)
[Demo URL:](https://www.91risk.com) https://www.91risk.com
[Demo URL:](https://www.riskengine.cn) https://www.riskengine.cn
建议大家自行注册用户,避免使用同样的测试账号受干扰.

## 相关文档
Expand All @@ -93,8 +93,8 @@ https://gitee.com/freshday/radar/wikis/manual
成书平, 徐帅,郭锐, 王成,马兆永...

## 赞助商
* 中和农信项目管理有限公司

* 中和农信项目管理有限公司
* 二十六度数字科技(广州)有限公司
感谢赞助商大大们对本项目的认可和支持。

## Contact to
Expand Down
4 changes: 2 additions & 2 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The project code called Radar, like the code, monitor the transaction at the bac
## Relation Site
Gitee: https://gitee.com/freshday/radar
Github: https://github.com/wfh45678/radar
Official Site: https://www.91risk.com
Official Site: https://www.riskengine.cn
Wiki: https://gitee.com/freshday/radar/wikis/home


Expand All @@ -29,7 +29,7 @@ Server-end: SpringBoot + Mybatis + tkMapper + Mysql + MongoDB + Redis + Groov
Front-end: React(SPA)

### System Component Diagram
![Architecture](https://www.91risk.com/radar/sys_model_arch.png)
![Architecture](https://www.riskengine.cn/radar/sys_model_arch.png)

## Technology stack
* Springboot:base spring boot 2.x framework.
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<mysql.version>8.0.16</mysql.version>
<springboot.version>2.2.5.RELEASE</springboot.version>
<tensorflow.version>1.12.0</tensorflow.version>
<es.version>7.6.1</es.version>
<es.version>7.11.2</es.version>
<mapstruct.version>1.4.1.Final</mapstruct.version>
</properties>

Expand Down Expand Up @@ -204,7 +204,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>28.2-jre</version>
<version>29.0-jre</version>
</dependency>

<!-- admin 模块独立引用-->
Expand All @@ -216,7 +216,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
<version>2.7</version>
</dependency>

<!-- commons 模块独立引用-->
Expand All @@ -238,7 +238,7 @@
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.6</version>
<version>3.5.6</version>
</dependency>
<dependency>
<groupId>org.tensorflow</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void subscribeDataList(SubscribeHandle handler) {

@Override
public void cacheCaptcha(String captcha) {
redisService.setex(LOGIN_CAPTCHA_PREFIX + captcha, captcha, 60);
redisService.setex(LOGIN_CAPTCHA_PREFIX + captcha, captcha, 60 * 2);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

import com.pgmmers.radar.service.engine.PluginServiceV2;
import com.pgmmers.radar.vo.model.PreItemVO;
import java.util.ArrayList;
import java.util.List;

import java.util.Arrays;
import java.util.Map;
import java.util.stream.Collectors;

/**
* author: wangcheng Date: 2020/5/19 Time: 上午11:45 Description:
Expand All @@ -29,18 +30,13 @@ public String getType() {
@Override
public Object handle(PreItemVO item, Map<String, Object> jsonInfo,
String[] sourceField) {
List<Object> fields = new ArrayList<>();
for (String field : sourceField) {
fields.add(jsonInfo.get(field));
}
StringBuilder builder = new StringBuilder();
for (int i = 0; i < fields.size(); i++) {
Object f = fields.get(i);
builder.append(f == null ? "" : f.toString());
if (i < fields.size() - 1) {
builder.append("_");
}
if (sourceField == null || sourceField.length == 0) {
return "";
}
return builder.toString();
String str = Arrays.asList(sourceField).stream()
.map(f -> jsonInfo.get(f) == null ? "" : f.toString())
.collect(Collectors.joining("_"));
return str;
}

}

0 comments on commit 13804c2

Please sign in to comment.