Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
semi-server
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
inroi
semi-server
Commits
1f3c9afc
提交
1f3c9afc
authored
10月 18, 2022
作者:
inroi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
微调
上级
69058344
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
19 行增加
和
10 行删除
+19
-10
DockingDistributionServiceImpl.java
...m/system/serivce/impl/DockingDistributionServiceImpl.java
+5
-5
DockingServiceImpl.java
...main/java/com/system/serivce/impl/DockingServiceImpl.java
+2
-2
ThirdPartyLogUtil.java
...tem/src/main/java/com/system/utils/ThirdPartyLogUtil.java
+12
-3
没有找到文件。
integrate-system/src/main/java/com/system/serivce/impl/DockingDistributionServiceImpl.java
浏览文件 @
1f3c9afc
...
...
@@ -36,7 +36,7 @@ public class DockingDistributionServiceImpl implements IDockingDistributionServi
data
.
put
(
"secret"
,
secret
);
String
result
=
HttpClientUtil
.
sendPost
(
"http://192.168.0.34:8080/api/v1/memberAdd"
,
JsonUtil
.
toString
(
data
));
thirdPartyLogUtil
.
thirdPartyLogCreate
(
"分销会员创建"
,
"0001"
,
queueId
,
"平台->分销"
,
JsonUtil
.
toString
(
data
),
result
,
1
);
thirdPartyLogUtil
.
thirdPartyLogCreate
(
"分销会员创建"
,
"0001"
,
queueId
,
"平台->分销"
,
JsonUtil
.
toString
(
data
),
result
);
return
result
;
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
...
...
@@ -50,7 +50,7 @@ public class DockingDistributionServiceImpl implements IDockingDistributionServi
data
.
put
(
"secret"
,
secret
);
String
result
=
HttpClientUtil
.
sendPost
(
"http://192.168.0.34:8080/api/v1/trade"
,
JsonUtil
.
toString
(
data
));
thirdPartyLogUtil
.
thirdPartyLogCreate
(
"分销交易创建"
,
"0001"
,
queueId
,
"平台->分销"
,
JsonUtil
.
toString
(
data
),
result
,
1
);
thirdPartyLogUtil
.
thirdPartyLogCreate
(
"分销交易创建"
,
"0001"
,
queueId
,
"平台->分销"
,
JsonUtil
.
toString
(
data
),
result
);
return
result
;
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
...
...
@@ -87,7 +87,7 @@ public class DockingDistributionServiceImpl implements IDockingDistributionServi
data
.
put
(
"memberId"
,
memberId
);
String
result
=
HttpClientUtil
.
sendPost
(
"http://192.168.0.34:8080/api/v1/subordinate"
,
JsonUtil
.
toString
(
data
));
thirdPartyLogUtil
.
thirdPartyLogCreate
(
"分销会员下级查询"
,
"0001"
,
queueId
,
"平台->分销"
,
JsonUtil
.
toString
(
data
),
result
,
1
);
thirdPartyLogUtil
.
thirdPartyLogCreate
(
"分销会员下级查询"
,
"0001"
,
queueId
,
"平台->分销"
,
JsonUtil
.
toString
(
data
),
result
);
return
result
;
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
...
...
@@ -103,7 +103,7 @@ public class DockingDistributionServiceImpl implements IDockingDistributionServi
data
.
put
(
"memberId"
,
memberId
);
String
result
=
HttpClientUtil
.
sendPost
(
"http://192.168.0.34:8080/api/v1/member/balance"
,
JsonUtil
.
toString
(
data
));
thirdPartyLogUtil
.
thirdPartyLogCreate
(
"分销会员余额查询"
,
"0001"
,
queueId
,
"平台->分销"
,
JsonUtil
.
toString
(
data
),
result
,
1
);
thirdPartyLogUtil
.
thirdPartyLogCreate
(
"分销会员余额查询"
,
"0001"
,
queueId
,
"平台->分销"
,
JsonUtil
.
toString
(
data
),
result
);
return
result
;
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
...
...
@@ -121,7 +121,7 @@ public class DockingDistributionServiceImpl implements IDockingDistributionServi
data
.
put
(
"limit"
,
14
);
String
result
=
HttpClientUtil
.
sendPost
(
"http://192.168.0.34:8080/api/v1/member/profit"
,
JsonUtil
.
toString
(
data
));
thirdPartyLogUtil
.
thirdPartyLogCreate
(
"分销会员收益查询"
,
"0001"
,
queueId
,
"平台->分销"
,
JsonUtil
.
toString
(
data
),
result
,
1
);
thirdPartyLogUtil
.
thirdPartyLogCreate
(
"分销会员收益查询"
,
"0001"
,
queueId
,
"平台->分销"
,
JsonUtil
.
toString
(
data
),
result
);
return
result
;
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
...
...
integrate-system/src/main/java/com/system/serivce/impl/DockingServiceImpl.java
浏览文件 @
1f3c9afc
...
...
@@ -45,7 +45,7 @@ public class DockingServiceImpl implements IDockingService {
String
result
=
dockingDistributionService
.
dockingDistributionMemberCreate
(
inVo
.
getQueueId
(),
data
);
Map
<
String
,
Object
>
map
=
JsonUtil
.
toMap
(
result
,
String
.
class
,
Object
.
class
);
if
(
CollectionUtils
.
isEmpty
(
map
)
||
!
Constants
.
SUCCESS_CODE
.
equals
(
String
.
valueOf
(
map
.
get
(
Constants
.
SUCCESS_NAME
))))
{
return
RestResponse
.
fail
(
"新增会员失败
"
);
return
RestResponse
.
fail
(
"新增会员失败
!"
+
map
.
get
(
"errorMessage"
)
);
}
return
RestResponse
.
success
();
...
...
@@ -65,7 +65,7 @@ public class DockingServiceImpl implements IDockingService {
String
result
=
dockingDistributionService
.
dockingDistributionTransactionCreate
(
inVo
.
getQueueId
(),
data
);
Map
<
String
,
Object
>
map
=
JsonUtil
.
toMap
(
result
,
String
.
class
,
Object
.
class
);
if
(
CollectionUtils
.
isEmpty
(
map
)
||
!
Constants
.
SUCCESS_CODE
.
equals
(
String
.
valueOf
(
map
.
get
(
Constants
.
SUCCESS_NAME
))))
{
return
RestResponse
.
fail
(
"新增交易失败
"
);
return
RestResponse
.
fail
(
"新增交易失败
! "
+
map
.
get
(
"errorMessage"
)
);
}
return
RestResponse
.
success
();
...
...
integrate-system/src/main/java/com/system/utils/ThirdPartyLogUtil.java
浏览文件 @
1f3c9afc
package
com
.
system
.
utils
;
import
com.system.constants.Constants
;
import
com.system.dao.ThirdPartyLogMapper
;
import
com.system.transfer.log.ThirdPartyLogCreateInVo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
import
java.util.Map
;
/**
* @author Inori
...
...
@@ -19,7 +23,7 @@ public class ThirdPartyLogUtil {
return
thirdPartyLogMapper
.
getThirdPartyLogByQueueId
(
queueId
);
}
public
Integer
thirdPartyLogCreate
(
String
name
,
String
docType
,
String
queueId
,
String
direction
,
String
request
,
String
response
,
Integer
flag
)
{
public
void
thirdPartyLogCreate
(
String
name
,
String
docType
,
String
queueId
,
String
direction
,
String
request
,
String
response
)
{
ThirdPartyLogCreateInVo
inVo
=
new
ThirdPartyLogCreateInVo
();
inVo
.
setName
(
name
);
inVo
.
setCode
(
docType
);
...
...
@@ -27,10 +31,15 @@ public class ThirdPartyLogUtil {
inVo
.
setDirection
(
direction
);
inVo
.
setRequest
(
request
);
inVo
.
setResponse
(
response
);
inVo
.
setFlag
(
flag
);
Map
<
String
,
Object
>
map
=
JsonUtil
.
toMap
(
response
,
String
.
class
,
Object
.
class
);
if
(!
CollectionUtils
.
isEmpty
(
map
)
&&
Constants
.
SUCCESS_CODE
.
equals
(
String
.
valueOf
(
map
.
get
(
Constants
.
SUCCESS_NAME
))))
{
inVo
.
setFlag
(
1
);
}
else
{
inVo
.
setFlag
(
0
);
}
thirdPartyLogMapper
.
thirdPartyLogCreate
(
inVo
);
return
inVo
.
getId
();
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论