Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
roncoo
roncoo-education
提交
dad3eb25
R
roncoo-education
项目概览
roncoo
/
roncoo-education
大约 1 年 前同步成功
通知
146
Star
5
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roncoo-education
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dad3eb25
编写于
7月 30, 2021
作者:
權赋
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
https://github.com/roncoo/roncoo-education
上级
6c8da748
043251cc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
33 addition
and
32 deletion
+33
-32
roncoo-education-user/roncoo-education-user-service/src/main/java/com/roncoo/education/user/common/bo/UserRegisterBO.java
...a/com/roncoo/education/user/common/bo/UserRegisterBO.java
+31
-28
roncoo-education-user/roncoo-education-user-service/src/main/java/com/roncoo/education/user/service/api/biz/ApiUserInfoBiz.java
...roncoo/education/user/service/api/biz/ApiUserInfoBiz.java
+2
-4
未找到文件。
roncoo-education-user/roncoo-education-user-service/src/main/java/com/roncoo/education/user/common/bo/UserRegisterBO.java
浏览文件 @
dad3eb25
...
@@ -20,38 +20,41 @@ import java.io.Serializable;
...
@@ -20,38 +20,41 @@ import java.io.Serializable;
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
public
class
UserRegisterBO
implements
Serializable
{
public
class
UserRegisterBO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
* 手机号码
* 手机号码
*/
*/
@ApiModelProperty
(
value
=
"手机"
,
required
=
true
)
@ApiModelProperty
(
value
=
"手机"
,
required
=
true
)
private
String
mobile
;
private
String
mobile
;
/**
/**
* 登录密码
* 登录密码
*/
*/
@ApiModelProperty
(
value
=
"密码"
,
required
=
true
)
@ApiModelProperty
(
value
=
"密码"
,
required
=
true
)
private
String
password
;
private
String
password
;
/**
/**
* 重复密码
* 重复密码
*/
*/
@ApiModelProperty
(
value
=
"重复密码"
,
required
=
true
)
@ApiModelProperty
(
value
=
"重复密码"
,
required
=
true
)
private
String
repassword
;
private
String
repassword
;
/**
/**
* clientId
* clientId
*/
*/
@ApiModelProperty
(
value
=
"clientId"
,
required
=
true
)
@ApiModelProperty
(
value
=
"clientId"
,
required
=
true
)
private
String
clientId
;
private
String
clientId
;
/**
/**
* 手机验证码
* 手机验证码
*/
*/
@ApiModelProperty
(
value
=
"手机验证码"
,
required
=
true
)
@ApiModelProperty
(
value
=
"手机验证码"
,
required
=
true
)
private
String
code
;
private
String
code
;
@ApiModelProperty
(
value
=
"ip地址"
)
@ApiModelProperty
(
value
=
"ip地址"
)
private
String
ip
;
private
String
ip
;
@ApiModelProperty
(
value
=
"注册来源"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"注册来源"
,
hidden
=
true
)
private
Integer
source
=
2
;
private
Integer
source
=
2
;
@ApiModelProperty
(
value
=
"推荐人"
,
hidden
=
true
)
private
String
referralCode
=
"D92359"
;
}
}
roncoo-education-user/roncoo-education-user-service/src/main/java/com/roncoo/education/user/service/api/biz/ApiUserInfoBiz.java
浏览文件 @
dad3eb25
...
@@ -59,9 +59,6 @@ public class ApiUserInfoBiz extends BaseBiz {
...
@@ -59,9 +59,6 @@ public class ApiUserInfoBiz extends BaseBiz {
@Autowired
@Autowired
private
RedisTemplate
<
String
,
String
>
redisTemplate
;
private
RedisTemplate
<
String
,
String
>
redisTemplate
;
// RSA公钥
private
final
String
publicKey
=
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCzBzD+Sgi5z+zq8P/qMimssuozcjdx4pBu2U2OKf6bDdQEKmSB1KXCheG2m19+xnerIZ22fr8nHc0r1qIKIUrJ0UWU8qXkANe4u0wW0V52BsW6H02Jmc1mFjrYcOCpToVFGvLm17AgP6tNBAiTjiiBc0V+prAZ9ixrC5aPsI4gAwIDAQAB"
;
@Transactional
@Transactional
public
Result
<
UserLoginDTO
>
register
(
UserRegisterBO
userRegisterBO
)
{
public
Result
<
UserLoginDTO
>
register
(
UserRegisterBO
userRegisterBO
)
{
if
(
StringUtils
.
isEmpty
(
userRegisterBO
.
getMobile
()))
{
if
(
StringUtils
.
isEmpty
(
userRegisterBO
.
getMobile
()))
{
...
@@ -108,10 +105,11 @@ public class ApiUserInfoBiz extends BaseBiz {
...
@@ -108,10 +105,11 @@ public class ApiUserInfoBiz extends BaseBiz {
// 同步数据到演示环境
// 同步数据到演示环境
try
{
try
{
// 密码加密
// 密码加密
String
publicKey
=
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCzBzD+Sgi5z+zq8P/qMimssuozcjdx4pBu2U2OKf6bDdQEKmSB1KXCheG2m19+xnerIZ22fr8nHc0r1qIKIUrJ0UWU8qXkANe4u0wW0V52BsW6H02Jmc1mFjrYcOCpToVFGvLm17AgP6tNBAiTjiiBc0V+prAZ9ixrC5aPsI4gAwIDAQAB"
;
RSA
rsa
=
new
RSA
(
null
,
publicKey
);
RSA
rsa
=
new
RSA
(
null
,
publicKey
);
userRegisterBO
.
setPassword
(
rsa
.
encryptBase64
(
userRegisterBO
.
getPassword
(),
KeyType
.
PublicKey
));
userRegisterBO
.
setPassword
(
rsa
.
encryptBase64
(
userRegisterBO
.
getPassword
(),
KeyType
.
PublicKey
));
userRegisterBO
.
setRepassword
(
rsa
.
encryptBase64
(
userRegisterBO
.
getRepassword
(),
KeyType
.
PublicKey
));
userRegisterBO
.
setRepassword
(
rsa
.
encryptBase64
(
userRegisterBO
.
getRepassword
(),
KeyType
.
PublicKey
));
String
post
=
HttpUtil
.
post
(
"http://de
v.school.roncoos.com
/gateway/user/api/user/register"
,
JSONUtil
.
toJsonStr
(
userRegisterBO
));
String
post
=
HttpUtil
.
post
(
"http://de
mo.edu.roncoo.net
/gateway/user/api/user/register"
,
JSONUtil
.
toJsonStr
(
userRegisterBO
));
logger
.
warn
(
"-----------------同步注册"
+
post
);
logger
.
warn
(
"-----------------同步注册"
+
post
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录