Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
ce7aa2b5
提交
ce7aa2b5
authored
9月 05, 2023
作者:
xiaowang
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/develop' into develop
上级
bb26a304
635ce11c
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
46 行增加
和
16 行删除
+46
-16
XzService.java
...c/main/java/com/mmc/iuav/user/service/xzsz/XzService.java
+1
-1
XzServiceImpl.java
...va/com/mmc/iuav/user/service/xzsz/impl/XzServiceImpl.java
+27
-9
application-dev.yml
...e/cms-service-user/src/main/resources/application-dev.yml
+11
-5
application-local.yml
...cms-service-user/src/main/resources/application-local.yml
+6
-0
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/xzsz/XzService.java
浏览文件 @
ce7aa2b5
...
@@ -26,7 +26,7 @@ public interface XzService {
...
@@ -26,7 +26,7 @@ public interface XzService {
String
xzAuthNotify
(
JSONObject
notify
);
String
xzAuthNotify
(
JSONObject
notify
);
String
getSignedResult
(
XzAuthVO
xzAuthVO
);
JSONObject
getSignedResult
(
XzAuthVO
xzAuthVO
);
String
viewContract
(
String
documentId
);
String
viewContract
(
String
documentId
);
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/xzsz/impl/XzServiceImpl.java
浏览文件 @
ce7aa2b5
...
@@ -4,12 +4,15 @@ import cn.hutool.core.codec.Base64;
...
@@ -4,12 +4,15 @@ import cn.hutool.core.codec.Base64;
import
cn.hutool.core.net.URLDecoder
;
import
cn.hutool.core.net.URLDecoder
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONObject
;
import
com.alibaba.fastjson2.JSON
;
import
com.alibaba.fastjson2.JSON
;
import
com.alibaba.fastjson2.JSONArray
;
import
com.mmc.iuav.general.CodeUtil
;
import
com.mmc.iuav.general.CodeUtil
;
import
com.mmc.iuav.http.HttpsRequestUtil
;
import
com.mmc.iuav.http.HttpsRequestUtil
;
import
com.mmc.iuav.response.ResultBody
;
import
com.mmc.iuav.response.ResultBody
;
import
com.mmc.iuav.user.constant.UserSystemConstant
;
import
com.mmc.iuav.user.constant.UserSystemConstant
;
import
com.mmc.iuav.user.dao.RealNameAuthDao
;
import
com.mmc.iuav.user.dao.wallet.PayWalletDao
;
import
com.mmc.iuav.user.dao.wallet.PayWalletDao
;
import
com.mmc.iuav.user.dao.xzsz.XzDao
;
import
com.mmc.iuav.user.dao.xzsz.XzDao
;
import
com.mmc.iuav.user.entity.RealNameAuthDO
;
import
com.mmc.iuav.user.entity.XzAuthDO
;
import
com.mmc.iuav.user.entity.XzAuthDO
;
import
com.mmc.iuav.user.entity.XzWithdrawalApplyDO
;
import
com.mmc.iuav.user.entity.XzWithdrawalApplyDO
;
import
com.mmc.iuav.user.entity.wallet.PayWalletDO
;
import
com.mmc.iuav.user.entity.wallet.PayWalletDO
;
...
@@ -49,6 +52,7 @@ import java.math.BigDecimal;
...
@@ -49,6 +52,7 @@ import java.math.BigDecimal;
import
java.nio.charset.Charset
;
import
java.nio.charset.Charset
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -67,6 +71,9 @@ public class XzServiceImpl implements XzService {
...
@@ -67,6 +71,9 @@ public class XzServiceImpl implements XzService {
@Resource
@Resource
private
PayWalletDao
payWalletDao
;
private
PayWalletDao
payWalletDao
;
@Autowired
private
RealNameAuthDao
realNameAuthDao
;
@Override
@Override
public
ResultBody
getTaxFundList
()
{
public
ResultBody
getTaxFundList
()
{
PiggyOpenBasicsClient
piggyOpenBasicsClient
=
PiggyOpenBasicsClient
.
getInstanse
(
userSystemConstant
.
getXzAppSecret
(),
userSystemConstant
.
getXzDomain
());
PiggyOpenBasicsClient
piggyOpenBasicsClient
=
PiggyOpenBasicsClient
.
getInstanse
(
userSystemConstant
.
getXzAppSecret
(),
userSystemConstant
.
getXzDomain
());
...
@@ -117,23 +124,34 @@ public class XzServiceImpl implements XzService {
...
@@ -117,23 +124,34 @@ public class XzServiceImpl implements XzService {
com
.
alibaba
.
fastjson2
.
JSONObject
jsonObject1
=
com
.
alibaba
.
fastjson2
.
JSONObject
.
parseObject
(
contractScope
);
com
.
alibaba
.
fastjson2
.
JSONObject
jsonObject1
=
com
.
alibaba
.
fastjson2
.
JSONObject
.
parseObject
(
contractScope
);
if
(
jsonObject1
.
get
(
"data"
)
!=
null
)
{
if
(
jsonObject1
.
get
(
"data"
)
!=
null
)
{
// TODO 添加认证结果
// TODO 添加认证结果
String
signedResult
=
this
.
getSignedResult
(
xzAuthVO
);
JSONObject
signedResult
=
this
.
getSignedResult
(
xzAuthVO
);
if
(
signedResult
.
get
(
"msg"
).
equals
(
"success"
))
{
return
"合同签署完毕"
;
log
.
info
(
"Signed result: {}"
,
signedResult
);
List
<
JSONObject
>
jsonObjects
=
JSONArray
.
parseArray
(
signedResult
.
get
(
"data"
).
toString
(),
JSONObject
.
class
);
log
.
info
(
"jsonObjects : {}"
,
com
.
alibaba
.
fastjson2
.
JSONObject
.
toJSONString
(
jsonObjects
));
}
return
signedResult
.
toString
();
}
else
{
}
else
{
// 获取认证信息
RealNameAuthDO
realNameAuthDO
=
realNameAuthDao
.
getRealNameAuthByUId
(
loginSuccessDTO
.
getUserAccountId
());
if
(
realNameAuthDO
==
null
)
{
return
"先完成实名认证再签署!"
;
}
Map
<
String
,
Integer
>
userInfo
=
new
HashMap
<
String
,
Integer
>();
Map
<
String
,
Integer
>
userInfo
=
new
HashMap
<
String
,
Integer
>();
userInfo
.
put
(
"userAccountId"
,
loginSuccessDTO
.
getUserAccountId
());
userInfo
.
put
(
"userAccountId"
,
loginSuccessDTO
.
getUserAccountId
());
PiggySignApiClient
piggySignApiClient
=
PiggySignApiClient
.
getInstanse
(
userSystemConstant
.
getXzAppSecret
(),
userSystemConstant
.
getXzDomain
());
PiggySignApiClient
piggySignApiClient
=
PiggySignApiClient
.
getInstanse
(
userSystemConstant
.
getXzAppSecret
(),
userSystemConstant
.
getXzDomain
());
JSONObject
jsonObject
=
piggySignApiClient
.
getSignUrl
(
PiggySignVo
.
builder
()
JSONObject
jsonObject
=
piggySignApiClient
.
getSignUrl
(
PiggySignVo
.
builder
()
.
appKey
(
userSystemConstant
.
getXzAppKey
())
.
appKey
(
userSystemConstant
.
getXzAppKey
())
.
customParams
(
com
.
alibaba
.
fastjson2
.
JSONObject
.
toJSONString
(
userInfo
))
.
customParams
(
com
.
alibaba
.
fastjson2
.
JSONObject
.
toJSONString
(
userInfo
))
.
idCardNo
(
xzAuthVO
.
getIdCardNo
())
.
idCardNo
(
realNameAuthDO
.
getIdNumber
())
.
infoSource
(
"1"
)
.
infoSource
(
"1"
)
.
jumpPage
(
"https://www
w.baidu.com
"
)
.
jumpPage
(
"https://www
.signtest.cn/signSuccess
"
)
.
mobile
(
xzAuthVO
.
getMobile
())
.
mobile
(
loginSuccessDTO
.
getPhoneNum
())
.
notifyUrl
(
userSystemConstant
.
getAuthNotify
())
.
notifyUrl
(
userSystemConstant
.
getAuthNotify
())
.
position
(
userSystemConstant
.
getXzPosition
())
.
position
(
userSystemConstant
.
getXzPosition
())
.
userName
(
xzAuthVO
.
getUsername
())
.
userName
(
realNameAuthDO
.
getUserName
())
.
idCardImageFront
(
realNameAuthDO
.
getFrontIdImg
())
.
idCardImageBack
(
realNameAuthDO
.
getBackIdImg
())
.
build
());
.
build
());
// TODO 发送模板消息
// TODO 发送模板消息
return
jsonObject
.
get
(
"data"
).
toString
();
return
jsonObject
.
get
(
"data"
).
toString
();
...
@@ -165,7 +183,7 @@ public class XzServiceImpl implements XzService {
...
@@ -165,7 +183,7 @@ public class XzServiceImpl implements XzService {
}
}
@Override
@Override
public
String
getSignedResult
(
XzAuthVO
xzAuthVO
)
{
public
JSONObject
getSignedResult
(
XzAuthVO
xzAuthVO
)
{
PiggySignApiClient
piggySignApiClient
=
PiggySignApiClient
.
getInstanse
(
userSystemConstant
.
getXzAppSecret
(),
userSystemConstant
.
getXzDomain
());
PiggySignApiClient
piggySignApiClient
=
PiggySignApiClient
.
getInstanse
(
userSystemConstant
.
getXzAppSecret
(),
userSystemConstant
.
getXzDomain
());
JSONObject
jsonObject
=
piggySignApiClient
.
getSignResult
(
PiggySignResultVo
.
builder
()
JSONObject
jsonObject
=
piggySignApiClient
.
getSignResult
(
PiggySignResultVo
.
builder
()
.
appKey
(
userSystemConstant
.
getXzAppKey
())
.
appKey
(
userSystemConstant
.
getXzAppKey
())
...
@@ -173,7 +191,7 @@ public class XzServiceImpl implements XzService {
...
@@ -173,7 +191,7 @@ public class XzServiceImpl implements XzService {
.
userName
(
xzAuthVO
.
getUsername
())
.
userName
(
xzAuthVO
.
getUsername
())
.
build
());
.
build
());
System
.
out
.
println
(
jsonObject
.
toString
());
System
.
out
.
println
(
jsonObject
.
toString
());
return
jsonObject
.
toString
()
;
return
jsonObject
;
}
}
@Override
@Override
...
...
csm-service/cms-service-user/src/main/resources/application-dev.yml
浏览文件 @
ce7aa2b5
...
@@ -70,12 +70,18 @@ third-party:
...
@@ -70,12 +70,18 @@ third-party:
app-key
:
5015e664848d406ab1ca4b505c3da803
app-key
:
5015e664848d406ab1ca4b505c3da803
secret-key
:
7C4DB8CCECC148175E46392CC0A1B410
secret-key
:
7C4DB8CCECC148175E46392CC0A1B410
xzsz
:
xzsz
:
appKey
:
1e8e59e056be41f8a05c090964d7ce37
# appKey: 1e8e59e056be41f8a05c090964d7ce37
appSecret
:
ceshihuanjingyanshizhanghao00000
# appSecret: ceshihuanjingyanshizhanghao00000
# aes: 0000000000000000
# domain: https://uat.xzsz.ltd/
# position: 销售推广
# taxFundId: xxxxxxxxxxxxxxxxxxxxxxx
appKey
:
37f76305f1864339adc8d6d03fbf918d
appSecret
:
hangzhouyunxiangfeikeji000000000
aes
:
0000000000000000
aes
:
0000000000000000
domain
:
https://
uat.xzsz.ltd/
domain
:
https://
saas.xzsz.ltd
position
:
销售
推广
position
:
市场
推广
taxFundId
:
xxxxxxxxxxxxxxxxxxxxxxx
taxFundId
:
0b0376083af4435885bd5d5cd3d63053
authNotify
:
https://test.iuav.shop/userapp/xz/xzAuthNotify
authNotify
:
https://test.iuav.shop/userapp/xz/xzAuthNotify
withdrawNotify
:
https://test.iuav.shop/userapp/xz/xzWithdrawNotify
withdrawNotify
:
https://test.iuav.shop/userapp/xz/xzWithdrawNotify
...
...
csm-service/cms-service-user/src/main/resources/application-local.yml
浏览文件 @
ce7aa2b5
...
@@ -48,6 +48,12 @@ third-party:
...
@@ -48,6 +48,12 @@ third-party:
authNotify
:
https://test.iuav.shop/userapp/xz/xzAuthNotify
authNotify
:
https://test.iuav.shop/userapp/xz/xzAuthNotify
withdrawNotify
:
https://test.iuav.shop/userapp/xz/xzWithdrawNotify
withdrawNotify
:
https://test.iuav.shop/userapp/xz/xzWithdrawNotify
fdd
:
appid
:
407664
appkey
:
q146q3Cjmi7Y6BVl8jtZK9pH
version
:
2
host
:
https://testapi.fadada.com:8443/api/
mmc-url
:
https://test.iuav.shop/userapp/
iuav
:
iuav
:
pay
:
pay
:
...
...
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
ce7aa2b5
...
@@ -18,4 +18,4 @@ patches:
...
@@ -18,4 +18,4 @@ patches:
images
:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newTag
:
3e134fb9e8e1e4215cd7079a060d1314e5692a5c
newTag
:
d96fffe3d794c52d19a2ad898288875744c479df
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论