Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
lei
fzm-joying
Commits
ca149f47
Commit
ca149f47
authored
Sep 23, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
5f125615
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
25 deletions
+29
-25
application-prod.yml
joying-admin/src/main/resources/application-prod.yml
+12
-12
UserServiceImpl.java
...ain/java/com/fzm/common/service/impl/UserServiceImpl.java
+7
-0
SmsUtil.java
...ng-common/src/main/java/com/fzm/common/utils/SmsUtil.java
+0
-3
application-prod.yml
joying-portal/src/main/resources/application-prod.yml
+10
-10
No files found.
joying-admin/src/main/resources/application-prod.yml
View file @
ca149f47
...
...
@@ -4,9 +4,9 @@ spring:
main
:
allow-bean-definition-overriding
:
true
datasource
:
url
:
jdbc:mysql://rm-uf65
dutlz01018ctc33150
.mysql.rds.aliyuncs.com:3306/joying?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8
username
:
inmvo
chain
password
:
db$95872!com@inmvo
url
:
jdbc:mysql://rm-uf65
2555t10p7cj27
.mysql.rds.aliyuncs.com:3306/joying?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8
username
:
inmvo
_china
password
:
U2FsdGVkX19J0YHIUWXWgPh1C5R0=
platform
:
mysql
type
:
com.alibaba.druid.pool.DruidDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
...
@@ -27,9 +27,9 @@ spring:
connection-properties
:
druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
useGlobalDataSourceStat
:
true
redis
:
host
:
r-uf6
5vh5nip6yjfgtcn
.redis.rds.aliyuncs.com
host
:
r-uf6
1gaz5hcnys2gbdo
.redis.rds.aliyuncs.com
port
:
6379
password
:
db$95872!com@inmvo
password
:
U2FsdGVkX19J0YHIUWXWgPh1C5R0=
lettuce
:
pool
:
# 连接池最大连接数(使用负值表示没有限制) 默认 8
...
...
@@ -65,14 +65,14 @@ swagger:
chain
:
para
:
rpc-url
:
http://47.
243.127.76
:8901
rpc-url
:
http://47.
75.126.72
:8901
withhold-addr
:
1Ae6FfgdYJn6LLaqDoRjwga3j4TTmMq3t7
withhold-key
:
a4c49dcb35e0032dc8db5891dc81481943b68fc558ce93ce74d0382c1d104934
title
:
user.p.FilmChain
admin
:
1
6naUoLwjNUgMhGVRmL3xTVpCso2DJp8JZ
admin-key
:
8cd19e9bf39055f95e3e33cc1e08b9f9fc2e9be48a5b3a4d401e64041c97aec
7
contract-name
:
user.evm.0x
d996a3a866c577596df260844a045a068ec5accd8d71ccaa3d578c9617ec5490
contract-address
:
1
iDWTHZQxPES4hLveZRcwJH6AMaMfZfZZ
withhold-key
:
0x
a4c49dcb35e0032dc8db5891dc81481943b68fc558ce93ce74d0382c1d104934
title
:
user.p.FilmChain
.
admin
:
1
N2ABERwHgxGhebVw6fVSwaQ5uLAysmGEu
admin-key
:
0x4e92bda2477ded0e7c07a9e3acd2370de8d7401c68cc83ee8376806db3121e7
7
contract-name
:
user.evm.0x
1adc08f04fbc0cda9fb45a6b36b317d4fed9715f68314b754ce1e22ea681cd28
contract-address
:
1
JoYQKtT6PwtfZWqTFPPdAksQ7jB2JRAPw
aliyun
:
oss
:
...
...
joying-common/src/main/java/com/fzm/common/service/impl/UserServiceImpl.java
View file @
ca149f47
...
...
@@ -6,6 +6,7 @@ import cn.hutool.core.date.DateTime;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.IdUtil
;
import
cn.hutool.core.util.RandomUtil
;
import
cn.hutool.json.JSONUtil
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
...
...
@@ -34,6 +35,7 @@ import com.tencentcloudapi.common.profile.HttpProfile;
import
com.tencentcloudapi.faceid.v20180301.FaceidClient
;
import
com.tencentcloudapi.faceid.v20180301.models.IdCardOCRVerificationRequest
;
import
com.tencentcloudapi.faceid.v20180301.models.IdCardOCRVerificationResponse
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.cache.annotation.Cacheable
;
import
org.springframework.security.crypto.password.PasswordEncoder
;
...
...
@@ -51,6 +53,7 @@ import java.util.List;
* @author tangtuo
* @date 2021/6/23 15:15
*/
@Slf4j
@Service
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
public
class
UserServiceImpl
extends
ServiceImpl
<
UserMapper
,
User
>
implements
UserService
{
...
...
@@ -232,6 +235,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
BASE64Encoder
base64Encoder
=
new
BASE64Encoder
();
String
encode
=
"data:image/jpg;base64,"
+
base64Encoder
.
encode
(
cardPictureFront
.
getBytes
());
IdCardOCRVerificationResponse
response
=
TencentApi
.
idCardOCRVerification
(
encode
);
log
.
info
(
"实名认证结果:{}"
,
JSONUtil
.
toJsonStr
(
response
));
Integer
status
;
if
(
IdCardVerificationResponse
.
SUCCESS
.
getCode
().
equals
(
response
.
getResult
()))
{
// 验证成功上传身份证证件
...
...
@@ -253,6 +257,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
.
set
(
"auth_status"
,
status
)
.
eq
(
"id"
,
userId
);
update
(
userUpdateWrapper
);
if
(
AuthStatusEnum
.
SUCCESS
.
getStatus
().
equals
(
status
))
{
redisUtil
.
delete
(
"user::statistic"
);
}
return
response
;
}
...
...
joying-common/src/main/java/com/fzm/common/utils/SmsUtil.java
View file @
ca149f47
...
...
@@ -91,9 +91,6 @@ public class SmsUtil {
* @return
*/
public
Boolean
validateCode
(
String
codetype
,
String
mobile
,
String
code
,
String
type
)
{
if
(
"8888"
.
equals
(
code
)){
return
true
;
}
String
timestamp
=
getTimestamp
();
HashMap
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"t"
,
type
);
...
...
joying-portal/src/main/resources/application-prod.yml
View file @
ca149f47
...
...
@@ -4,9 +4,9 @@ spring:
main
:
allow-bean-definition-overriding
:
true
datasource
:
url
:
jdbc:mysql://rm-uf65
dutlz01018ctc33150
.mysql.rds.aliyuncs.com:3306/joying?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8
username
:
inmvo
chain
password
:
db$95872!com@inmvo
url
:
jdbc:mysql://rm-uf65
2555t10p7cj27
.mysql.rds.aliyuncs.com:3306/joying?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8
username
:
inmvo
_china
password
:
U2FsdGVkX19J0YHIUWXWgPh1C5R0=
platform
:
mysql
type
:
com.alibaba.druid.pool.DruidDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
...
@@ -27,9 +27,9 @@ spring:
connection-properties
:
druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
useGlobalDataSourceStat
:
true
redis
:
host
:
r-uf6
5vh5nip6yjfgtcn
.redis.rds.aliyuncs.com
host
:
r-uf6
1gaz5hcnys2gbdo
.redis.rds.aliyuncs.com
port
:
6379
password
:
db$95872!com@inmvo
password
:
U2FsdGVkX19J0YHIUWXWgPh1C5R0=
lettuce
:
pool
:
# 连接池最大连接数(使用负值表示没有限制) 默认 8
...
...
@@ -77,14 +77,14 @@ sms:
chain
:
para
:
rpc-url
:
http://47.
243.127.76
:8901
rpc-url
:
http://47.
75.126.72
:8901
withhold-addr
:
1Ae6FfgdYJn6LLaqDoRjwga3j4TTmMq3t7
withhold-key
:
a4c49dcb35e0032dc8db5891dc81481943b68fc558ce93ce74d0382c1d104934
withhold-key
:
0x
a4c49dcb35e0032dc8db5891dc81481943b68fc558ce93ce74d0382c1d104934
title
:
user.p.FilmChain.
admin
:
1N2ABERwHgxGhebVw6fVSwaQ5uLAysmGEu
admin-key
:
4e92bda2477ded0e7c07a9e3acd2370de8d7401c68cc83ee8376806db3121e77
contract-name
:
user.evm.0x
4285f54e72e85c6a3a45179bee61179cd0e661497bfa0403148abf640c3b71ab
contract-address
:
1
AihcmFHyEtVShYSXNEfRQEhKKde6SyzoJ
admin-key
:
0x
4e92bda2477ded0e7c07a9e3acd2370de8d7401c68cc83ee8376806db3121e77
contract-name
:
user.evm.0x
1adc08f04fbc0cda9fb45a6b36b317d4fed9715f68314b754ce1e22ea681cd28
contract-address
:
1
JoYQKtT6PwtfZWqTFPPdAksQ7jB2JRAPw
aliyun
:
oss
:
...
...
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