Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
6248dba4
提交
6248dba4
authored
11月 16, 2021
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(区块链): 修改了根据不同环境是否使用区块
修改了根据不同环境是否使用区块
上级
f6cf91ea
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
23 行增加
和
22 行删除
+23
-22
BlockChainUtilImpl.java
...dev/blockcha/subject/service/impl/BlockChainUtilImpl.java
+0
-0
BlockChainUtilImpl1.java
...ev/blockcha/subject/service/impl/BlockChainUtilImpl1.java
+9
-14
application-dev.properties
dev-union/src/main/resources/application-dev.properties
+1
-0
application-local.properties
dev-union/src/main/resources/application-local.properties
+3
-2
application-prod.properties
dev-union/src/main/resources/application-prod.properties
+3
-2
application-prodM.properties
dev-union/src/main/resources/application-prodM.properties
+3
-2
application-prodT.properties
dev-union/src/main/resources/application-prodT.properties
+1
-0
application-test.properties
dev-union/src/main/resources/application-test.properties
+3
-2
没有找到文件。
dev-blockcha/src/main/java/com/tykj/dev/blockcha/subject/service/impl/BlockChainUtilImpl.java
浏览文件 @
6248dba4
差异被折叠。
点击展开。
dev-blockcha/src/main/java/com/tykj/dev/blockcha/subject/service/impl/BlockChainUtilImpl
Local
.java
→
dev-blockcha/src/main/java/com/tykj/dev/blockcha/subject/service/impl/BlockChainUtilImpl
1
.java
浏览文件 @
6248dba4
...
...
@@ -16,16 +16,13 @@
// * 步骤:
// * 1.构建请求参数
// * 2.通过rest_template获取数据
// *
// *
测试
// * @author LJJ cnljj1995@gmail.com
// * on 2020-08-13
// */
//@Slf4j
//@Component
//public class BlockChainUtilImplLocal implements BlockChainUtil {
//
//
//
//public class BlockChainUtilImpl1 implements BlockChainUtil {
//
//
// private String SECRET_KEY = "3mdeM1dw2FfHrd5h6WAuhB3WYdDG6ZAgz96CcM1nzxbiYA8QaaZHW75Je9xKixTTD2rwujyb1gVUNPYm5W6FPZQ8";
...
...
@@ -118,6 +115,7 @@
// request,
// BcText.class
// );
//// return new BcText().toData();
// }
//
// @Override
...
...
@@ -126,6 +124,7 @@
// request.put("content", content);
// request.put("subCode", subCode);
// request.put("apiSignature", ApiSignatureUtil.getApiSignature(request, SECRET_KEY));
//
// return new RestTemplate().postForObject(
// BLOCK_CHAIN_URL + BcUrl.SEND_TEXT,
// request,
...
...
@@ -133,10 +132,6 @@
// );
// }
//
//// public static void main(String[] args) {
//// new BlockChainUtilImpl().sendHash(1,"阿斯顿好看");
//// }
//
//
// @Override
// public BcHash sendHash(Integer index,Integer subCode, String content) {
...
...
@@ -202,10 +197,6 @@
// request,
// BcHash.class
// );
//// }
//// else {
//// return new BcHash(0, "", new BcHashData("000"));
//// }
// }
//
// @Override
...
...
@@ -226,6 +217,7 @@
// SortedMap<Object, Object> request = getRequest();
// map.forEach(request::put);
// request.put("apiSignature", ApiSignatureUtil.getApiSignature(request, SECRET_KEY));
//
// return new RestTemplate().postForObject(
// BLOCK_CHAIN_URL + BcUrl.FETCH_HISTORY,
// request,
...
...
@@ -275,6 +267,7 @@
// BLOCK_CHAIN_URL + BcUrl.APPEND_TEXT,
// request,
// BcText.class);
//// return new BcText().toData();
// }
//
// @Override
...
...
@@ -285,7 +278,7 @@
// String s = ApiSignatureUtil.getApiSignature(request, SECRET_KEY);
// request.put("apiSignature", s);
//
// return new RestTemplate().postForObject(
//
return new RestTemplate().postForObject(
// BLOCK_CHAIN_URL + BcUrl.APPEND_TEXT,
// request,
// BcText.class);
...
...
@@ -338,6 +331,7 @@
// request,
// BcHash.class
// );
//// return new BcHash().toDate();
//
// }
//
...
...
@@ -354,6 +348,7 @@
// request,
// BcHash.class
// );
//// return new BcHash().toDate();
// }
//
// @Override
...
...
dev-union/src/main/resources/application-dev.properties
浏览文件 @
6248dba4
...
...
@@ -8,3 +8,4 @@ spring.jpa.hibernate.ddl-auto=update
# spring boot admin
spring.boot.admin.client.url
=
http://localhost:8769
spring.boot.admin.client.instance.serviceBaseUrl
=
http://localhost:8087w
block.flag
=
true
dev-union/src/main/resources/application-local.properties
浏览文件 @
6248dba4
...
...
@@ -6,4 +6,5 @@ file.path=C:/Users/dengdiyi/Documents/file/
logging.file
=
./log/equip.log
preview.path
=
http://124.70.145.101:8087/equip/file/
# spring boot admin
spring.boot.admin.client.url
=
http://localhost:8769
\ No newline at end of file
spring.boot.admin.client.url
=
http://localhost:8769
block.flag
=
true
\ No newline at end of file
dev-union/src/main/resources/application-prod.properties
浏览文件 @
6248dba4
...
...
@@ -6,4 +6,5 @@ spring.datasource.password=szoscar55
spring.jpa.database-platform
=
org.hibernate.dialect.OscarDialect
#file.path=/opt/zb/
#preview.path=http://10.153.4.11:8088/equip/file/
#
preview.path
=
http://192.168.0.80:8088/equip/file/
\ No newline at end of file
#preview.path=http://192.168.0.80:8088/equip/file/
block.flag
=
true
\ No newline at end of file
dev-union/src/main/resources/application-prodM.properties
浏览文件 @
6248dba4
...
...
@@ -6,4 +6,5 @@ spring.datasource.password=szoscar55
spring.jpa.database-platform
=
org.hibernate.dialect.OscarDialect
file.path
=
/opt/zb/
preview.path
=
http://10.153.4.11:8088/equip/file/
#
preview.path
=
http://192.168.0.80:8088/equip/file/
\ No newline at end of file
#preview.path=http://192.168.0.80:8088/equip/file/
block.flag
=
true
\ No newline at end of file
dev-union/src/main/resources/application-prodT.properties
浏览文件 @
6248dba4
...
...
@@ -7,3 +7,4 @@ spring.jpa.database-platform=org.hibernate.dialect.OscarDialect
file.path
=
/opt/zb/
preview.path
=
http://10.153.4.11:8088/equipTest/file/
spring.jmx.enabled
=
false
block.flag
=
false
dev-union/src/main/resources/application-test.properties
浏览文件 @
6248dba4
...
...
@@ -8,4 +8,5 @@ file.path=/opt/zb/
#preview.path=http://10.153.4.11:8088/equip/file/
preview.path
=
http://192.168.0.80:8088/equip/file/
spring.boot.admin.client.url
=
http://localhost:8769
spring.boot.admin.client.instance.serviceBaseUrl
=
http://localhost:8087
\ No newline at end of file
spring.boot.admin.client.instance.serviceBaseUrl
=
http://localhost:8087
block.flag
=
true
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论