Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
3069a5b8
提交
3069a5b8
authored
9月 04, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小猪结算电子签约修改
上级
981694a5
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
16 行增加
和
6 行删除
+16
-6
XzServiceImpl.java
...va/com/mmc/iuav/user/service/xzsz/impl/XzServiceImpl.java
+16
-6
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/xzsz/impl/XzServiceImpl.java
浏览文件 @
3069a5b8
...
@@ -8,8 +8,10 @@ import com.mmc.iuav.general.CodeUtil;
...
@@ -8,8 +8,10 @@ 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
;
...
@@ -67,6 +69,9 @@ public class XzServiceImpl implements XzService {
...
@@ -67,6 +69,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
());
...
@@ -118,22 +123,27 @@ public class XzServiceImpl implements XzService {
...
@@ -118,22 +123,27 @@ public class XzServiceImpl implements XzService {
if
(
jsonObject1
.
get
(
"data"
)
!=
null
)
{
if
(
jsonObject1
.
get
(
"data"
)
!=
null
)
{
// TODO 添加认证结果
// TODO 添加认证结果
String
signedResult
=
this
.
getSignedResult
(
xzAuthVO
);
String
signedResult
=
this
.
getSignedResult
(
xzAuthVO
);
log
.
info
(
"Signed result: {}"
,
signedResult
);
return
"合同签署完毕"
;
// JSONArray.parseArray();
return
signedResult
;
}
else
{
}
else
{
// 获取认证信息
RealNameAuthDO
realNameAuthDO
=
realNameAuthDao
.
getRealNameAuthByUId
(
loginSuccessDTO
.
getUserAccountId
());
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
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论